Created
May 17, 2015 10:36
-
-
Save soardex/ff1aa5a1ded192201df9 to your computer and use it in GitHub Desktop.
Enable and disable tracking of a single file in Git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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