Skip to content

Instantly share code, notes, and snippets.

@tduarte
Created October 14, 2016 19:23
Show Gist options
  • Save tduarte/6a5ea63a27a0e255261aa57fc69baed4 to your computer and use it in GitHub Desktop.
Save tduarte/6a5ea63a27a0e255261aa57fc69baed4 to your computer and use it in GitHub Desktop.
When you can't stash a modified file
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