Skip to content

Instantly share code, notes, and snippets.

@sofaking
Created April 13, 2017 18:50
Show Gist options
  • Save sofaking/a8a2b03ecaddebff9915e925b1345934 to your computer and use it in GitHub Desktop.
Save sofaking/a8a2b03ecaddebff9915e925b1345934 to your computer and use it in GitHub Desktop.
# http://stackoverflow.com/questions/6335521/git-how-to-revert-2-files-that-are-stubbornly-stuck-at-changed-but-not-committ
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