What's the best practice for maintaining app configuration for multiple test environments, (and production)?
At the moment I am keeping all the config in the code repo (a bitbucket server). Configs are text files in /config folders with subdirectories for each test environments (eg. config/SIT, config/UAT, config/PROD).
The problem is this seems very repetitive (non-DRY) and prone to human error.
Would maintaining the same config files using different git branches make more sense? Or are there any other tools or methods I should be looking at?