Created
April 4, 2015 14:57
-
-
Save StudioLE/e6c254f02aa8d145562f to your computer and use it in GitHub Desktop.
Hide changes to files in git but preserve the original file in the repository
This file contains 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
# To hide future changes | |
git update-index --assume-unchanged filepath | |
# To unhide changes | |
git update-index --no-assume-unchanged filepath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment