18 Feb 2019
While usually configuration files either have sensible defaults for the developers
or they can create a gitignored file with their custom config values.
When you do have to change a version controlled file just to match your local development setup, “assume unchanged” / “skip worktree” can be used to avoid checking it in accidently.
# Git assume a file git update-index --assume-unchanged fileName # And unassume with git update-index --no-assume-unchanged fileName