In a git repository, lets say I have a file in my master branch, config.json, which contains some information about e.g. my hosting environment.
master
- config.json
For the sake of argument, lets assume this file is read by my gulp-file and contains information about whether to minimize my javascripts or include source maps.
In my development branch, I want this file to be different
development
- config.json
So that whenever I run gulp on my main branch, my javascripts are minimized, whilst when I run gulp on my development branch, I include source maps for my compiled typescript.
Is there a way to ensure that config.json won't be merged from development to master by mistake, and vice versa?
Several generations of source control ago, in Visual Source Safe, this could be achieved by 'pinning' specific files to a specific 'branch'
Is this (or something equivalent) possible with git?