I believe situation I'm describing is pretty common and basic, yet I can't find soultion for it.
I'm developing a web app and I have git repository for it. There is a production version of the app, the code of which I keep on master branch and there are branches for open developments.
What I want to achieve is:
- I want to have some values (like connection strings) different on master branch and development branches.
- I want to be able to merge those branches (when the development is reade to be published) in a way I don't worry about values mentioned aboved. So the connection string from development branch doesn't override the connection string from production version
- The ideal solution would also take care of replacing the connection (from PROD database to DEV) string while creating new branch.
I figured out a way to do it would be a commit with those changes on development branches, that would be marked not to be included in merge, but I couldn't find a way to do it.
I'd appreciate any advice.