Skip to content

Instantly share code, notes, and snippets.

@zirosas
Last active January 3, 2016 12:39
Show Gist options
  • Save zirosas/8463851 to your computer and use it in GitHub Desktop.
Save zirosas/8463851 to your computer and use it in GitHub Desktop.
Git lets you ignore those files by assuming they are unchanged.
This is done by running the git update-index --assume-unchanged path/to/file.txt command. Once marking a file as such, git will completely ignore any changes on that file; they will not show up when running git status or git diff, nor will they ever be committed.
To make git track the file again, simply run
git update-index --no-assume-unchanged path/to/file.txt.
https://help.github.com/articles/ignoring-files
@zirosas
Copy link
Author

zirosas commented Feb 3, 2014

To get a list of dir's/files that are assume-unchanged run this:

git ls-files -v|grep '^h'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment