Skip to content

Instantly share code, notes, and snippets.

@rhumlover
Created November 11, 2015 02:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhumlover/86bf8b77ffb91e36ab74 to your computer and use it in GitHub Desktop.
Save rhumlover/86bf8b77ffb91e36ab74 to your computer and use it in GitHub Desktop.
When your git is stubborn and stuck with files that don't disappear (even with reset --hard), so you can't change branch: update git indexes so git knows those files didn't change
git ls-files -m | xargs -I {} git update-index --assume-unchanged {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment