I have a config file which I want to keep on the remote repository, but I don\'t want to track its changes on my computer. Adding it to .gitignore doesn\'t do the trick.
If you want to temporarily stop tracking a file, you can still use
git update-index --assume-unchanged // track changes again : git update-index --no-assume-unchanged