Skip to content

Instantly share code, notes, and snippets.

View faisalmahmud's full-sized avatar

Faisal Mahmud faisalmahmud

View GitHub Profile
@rhumlover
rhumlover / update_git_index.sh
Created November 11, 2015 02:04
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 {}