Skip to content

Instantly share code, notes, and snippets.

@jaynarayan89
Created September 16, 2017 10:57
Show Gist options
  • Save jaynarayan89/1f17c1566517dcf8168af265f812b30f to your computer and use it in GitHub Desktop.
Save jaynarayan89/1f17c1566517dcf8168af265f812b30f to your computer and use it in GitHub Desktop.
git update-index should do what you want
This will tell git you want to start ignoring the changes to the file
git update-index --assume-unchanged path/to/file
When you want to start keeping track again
git update-index --no-assume-unchanged path/to/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment