Last active
July 2, 2018 12:22
-
-
Save dmstern/f558c50384b01046b22e093583456ceb to your computer and use it in GitHub Desktop.
Git - Temporarily ignore trivial changes to files
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
# | |
# from https://stackoverflow.com/questions/13442130/git-temporarily-ignore-trivial-changes-to-files | |
#--------------------------------------------------------------------------------------------------- | |
# start ignoring changes to a file: | |
git update-index --assume-unchanged path/to/file | |
# keep tracking again: | |
git update-index --no-assume-unchanged path/to/file |
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
# List temporarily ignored files: | |
[alias] | |
ignored = !git ls-files -v | grep "^[[:lower:]]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment