Skip to content

Instantly share code, notes, and snippets.

@rderoldan1
Created December 13, 2013 16:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rderoldan1/7946485 to your computer and use it in GitHub Desktop.
Save rderoldan1/7946485 to your computer and use it in GitHub Desktop.
Ignore file changes in git

Fortunately GIT has a very easy solution for this, just run the following command on the file or path you want to ignore the changes of:

git update-index --assume-unchanged <file>

If you wanna start tracking changes again run the following command:

git update-index --no-assume-unchanged <file>

source: http://blog.pagebakers.nl/2009/01/29/git-ignoring-changes-in-tracked-files/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment