gitfaq
gitfaq copied to clipboard
Ignore changes to a tracked file
Sometimes you want to edit a file that is already tracked in your repo, but you don't want those changes to be committed:
git update-index --assume-unchanged <file>
If you want to start tracking changes again:
git update-index --no-assume-unchanged <file>