Skip to content

Instantly share code, notes, and snippets.

@dmstern
Last active July 2, 2018 12:22
Show Gist options
  • Save dmstern/f558c50384b01046b22e093583456ceb to your computer and use it in GitHub Desktop.
Save dmstern/f558c50384b01046b22e093583456ceb to your computer and use it in GitHub Desktop.
Git - Temporarily ignore trivial changes to files
#
# 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
# 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