I have a config file for our debug output system that contains a bunch of example lines. I want all of the engineers to get the basic version of this file when they clone the repo.
I don't want to commit my changes to this file. I want to ignore my changes, but leave the file in the repo for everybody else.
How do I do this? If I git ignore the file then git wants me to commit my changes to .gitignore to the repo. Changing my ~/.gitignore seems to have no effect - the changes still show up in SourceTree.
BTW, I did search around and find this thread. But it doesn't seem to do what I am looking for. How to stop tracking and ignore changes to a file in Git?