So first, add the file to your .gitignore file.
Then use the following command to tell git to assume it's unchanged:
git update-index --assume-unchanged YourFile
source: http://jameschambers.com/blog/ignoring-a-file-that-you-have-already-started-tracking-in-git
No comments:
Post a Comment