Skip to content

Instantly share code, notes, and snippets.

@caiovaccaro
Created April 28, 2014 14:14
Show Gist options
  • Save caiovaccaro/11373422 to your computer and use it in GitHub Desktop.
Save caiovaccaro/11373422 to your computer and use it in GitHub Desktop.
git-assume-unchanged
git update-index --assume-unchanged file.extension
@caiovaccaro
Copy link
Author

If .gitignore is deleting repo files use assume unchanged. To check if git is "ignoring the file" use:

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

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