For the configuration file, the selection is resumed in Git: keep certain files inactive .
I prefer to manage versions of different value files for each environment (here for each branch), so I do not need to deal with merging (the value file " dev.config " will never be changed in the main branch, where the value of the file " master.config " is used )
I also create a template file to create a filter file to create the actual configuration file (which remains closed and is not a version) when checking the branch:

source share