Created
February 16, 2018 04:26
-
-
Save karki-dennis/e1dc52252d5f645511ecb002290e092a to your computer and use it in GitHub Desktop.
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
# 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 | |
Or | |
git update-index --assumed-changed path/to/file | |
git update-index --no-assumed-changed path/to/file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment