Last active
July 5, 2019 07:48
-
-
Save yxw/30f7dd3632b13ea1f93306bbd15da3ba to your computer and use it in GitHub Desktop.
git temporarily stop / resume tracking files (usually binaries)
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
| # stop tracking binaries | |
| git ls-files -z /path/to/bin/ | xargs -0 git update-index --assume-unchanged | |
| # resume tracking binaries | |
| git update-index --no-assume-unchanged /path/to/bin/*.* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment