Skip to content

Instantly share code, notes, and snippets.

@veggerby
Created February 2, 2018 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veggerby/9ff8facc36fba1f19e542a733f57660d to your computer and use it in GitHub Desktop.
Save veggerby/9ff8facc36fba1f19e542a733f57660d to your computer and use it in GitHub Desktop.
Git Ignore Changes to a File
To ignore changes to a file:
git update-index --assume-unchanged [file]
To unignore changes to a file:
git update-index --no-assume-unchanged [file]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment