GitHub and Repositories within Repositories

I’ve recently started using GitHub – and I had the requirement to have nest repositories which I could have running in a single test/live environment that could be edited and committed independently. After looking at the various options available I am trialing a sym-links.

I have each repository stored in the root directory with the base/core repository setup to load specific domains via the vhosts file on an XAMPP installation.

Each sub-repository is then sym-linked into the parent directories within code/theme directories. This allows my system to load the code into the core base for testing and means I don’t have to move files around for changes and I can still make commits completely independently.

Yes this technique isn’t perfect but I can easily write a bash script for pulling/pushing all, multiple or single repositories as and when required.