I have a project of three sites with the same base. The sites are builded in Zend Framework so the structure is as follow:
Only the /application/modules is used as base as the rest (might) contain site specific content.
I want to setup the Git/Sourcetree that i can maintain all the projects at once, my suggestion is to use Subtree but i don't know how to configure that right.
My site structure would be basic at this:
- Head company:
- Sub company 1
- Sub company 2
- Sub company 3
I've created a repo for all 4 companies (the head and the 3 subs) How can i put the Base in the Head repo and the styling/config in the Sub repo and manage the base within all three sub repos, see TL;DR for meaning (assuming that pull and push are done right).
TL;DR What i want to achieve is that i can open the repo of a single site, edit the base and whenever i open a second repo (with pull and pushing done) i get the same base within that repo and continue from there.
I have never used any complex stuff within GIT so it's hard for to configure it right