Last active
January 3, 2016 12:39
-
-
Save zirosas/8463851 to your computer and use it in GitHub Desktop.
Git lets you ignore those files by assuming they are unchanged.
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To get a list of dir's/files that are assume-unchanged run this:
git ls-files -v|grep '^h'