Skip to content

Instantly share code, notes, and snippets.

@yxw
Last active July 5, 2019 07:48
Show Gist options
  • Select an option

  • Save yxw/30f7dd3632b13ea1f93306bbd15da3ba to your computer and use it in GitHub Desktop.

Select an option

Save yxw/30f7dd3632b13ea1f93306bbd15da3ba to your computer and use it in GitHub Desktop.
git temporarily stop / resume tracking files (usually binaries)
# 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