Skip to content

Instantly share code, notes, and snippets.

@soardex
Created May 17, 2015 10:36
Show Gist options
  • Save soardex/ff1aa5a1ded192201df9 to your computer and use it in GitHub Desktop.
Save soardex/ff1aa5a1ded192201df9 to your computer and use it in GitHub Desktop.
Enable and disable tracking of a single file in Git
# stops checking the working tree file for possible modification
git update-index --assume-unchanged [filename]
# does the opposite of the above (starts checking)
git update-index --no-assume-unchanged [filename]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment