Skip to content

Instantly share code, notes, and snippets.

@JeffCost
Created December 14, 2012 04:53
Show Gist options
  • Save JeffCost/4282768 to your computer and use it in GitHub Desktop.
Save JeffCost/4282768 to your computer and use it in GitHub Desktop.
GIT: Ignore tracked files
[alias]
ignore = !git update-index --assume-unchanged
unignore = !git update-index --no-assume-unchanged
ignored = !git ls-files -v | grep ^[a-z]
Usage:
git ignore <file>
git unignore <file>
git ignored
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment