I have started to use git for my projects, when I create a project it has a config folder containing configuration files:
application/config/config.php
appli
You could, once versioned, update their index:
git update-index --assume-unchanged application/config/config.php
Or you could even update the index more permently:
git update-index --skip-worktree application/config/config.php
(as show in "git update-index --assume-unchanged and git reset")
The other solution is to not version those final config file (since their content may vary as you pointed out), but to use a filter driver:
You would versioned:
application/config/config.tpl
)