A .gitignore
file allows to ignore files from version controlling them at all.
We have a different situation: we want to place in the repository some configuration files, that need to be changed on per-machine basis (db access info for instance).
We do want to distribute them, as placeholders, so we include them into the repository. However, later we want any changes to them to be ignored, for all developers.
Is there a way to do it?
Note:
The question Git: Ignoring Version-Controlled Files is actually the same. However, none of the answers answered the question, including the accepted one.
Edit:
- Is there a way to do --assume-unchanged to a pattern rather than a single file?
- Is there a way to propagate this command to the repositories of other developers?