gitfaq icon indicating copy to clipboard operation
gitfaq copied to clipboard

Ignore changes to a tracked file

Open jwloka opened this issue 10 years ago • 0 comments

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>

jwloka avatar May 13 '15 08:05 jwloka