Here’s the scene:
I’m currently working on my own framework and on a client’s website. Here is the structure:
.
..
_application
_framework
_public
I’d like to have a repo with _framework/* _public/index.php and the structure _application (empty folders for _controllers _models and _views) on github. Also I’d like to have a repo containing ALL of this locally.
I understood that with git-modules I could do this, but after looking up some tutorials I still don’t understand the way of doing this.
Could someone explain it a bit more to me? Thanks a lot!
It seems to me that you could define one repo per structure you want, and combine them in a super-project through submodules.
See this question for some details on the nature of submodules.
Extract:
So if you really have two structure which can evolve independently one from another, submodules are a good fit.