We have for branches master, edge, test, devl for our applications that runs on four urls prod.app.com, edge.app.com, test.app.com, devl.app.com
Our work flow is devl -> test -> edge -> master
Currently we are facing an issue in which some configuration that changes on all branches. We have some files that are to be different on 4 branches eg site urls, db settings etc. So how we can easily manage these files through git. We can't add it in Git ignore as we can't able to access web server frequently to change directly in web server.
Also we have around 14 configuration files (its for 14 differnet languages) also these configuration files have frequent code changes so we cant ignore these files. Also we cant merge files as specified in this link because changes are there and we need to push these changes to server
So currently when we need to change the configuration of edge we are changing configuration of devl and then branch pushing to test and then to edge. So during this process our devl and test will be down so please let us know the best method we can implement.