Skip to content

Instantly share code, notes, and snippets.

@ewoks
Forked from donnfelker/config
Created June 22, 2016 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewoks/e72184b370e81a17b88671357a5bd131 to your computer and use it in GitHub Desktop.
Save ewoks/e72184b370e81a17b88671357a5bd131 to your computer and use it in GitHub Desktop.
Watch or Unwatch a file in git
# Goes in your .git/config file
[alias]
# Temporarily stop tracking a file in git.
# usage: git unwatch path/to/file
unwatch = update-index --assume-unchanged
# Resume tracking a file in git.
# usage: git watch path/to/file
watch = update-index --no-assume-unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment