I have a file in Git which I have made private modifications to. I want to keep the file in Git but don't want to check in my private modifications to it.
Currently I just don't include that file when I run git add
but I'd rather not even see that in the list of modified files. Is there any way to do that?
P.S. .gitignore doesn't work because I have to delete the file from the repository to stop it from being tracked. I want the file to stay there but not contain my private changes.