I understand the branching logic of how to set this up where I would have the production branch as the master and have a development branch for developers but how do I take into consideration:
Configuration files
- Production using different database settings (git ignore and leave configs static alone?)
How to version and control files in different directories of the server?
- /var/apps: contains PHP code of different applications
- /var/www/bapp-t: development web root
- /var/www/bapp-p: production web root
- /var/map: some mapping code
How would I version the web roots AND the application framework when they are in different areas of the filesystem using git? Git requires you to have the repo name as the master folder but in my setup there is no way to abide by that? Should I just use symlinks to hook the roots?