config.ini
exists in a git repository and should be included when cloning. This file will be modified on a per-installation basis, however, it should not be required to commit the changes before doing a future pull and should not be replaced or modified by that pull.
git rm --cached config.ini
and committing the changes will not work as future clones will not include this file. I suppose can do this and add config.ini
to .gitignore
but then include and commit config.example.ini
which must be locally copied to config.ini
upon each installation if necessary, but this seems clunky.
On the local machines, I can use git update-index --assume-unchanged config.ini
, however, this needs to be performed for each installation and is not ideal.
What is the best approach to include a file in git repository but not to track or modify it upon future pull requests?