Created
March 22, 2012 00:15
-
-
Save virtualstaticvoid/2154354 to your computer and use it in GitHub Desktop.
Resets file modes in Git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| git diff --numstat | awk '{if ($1 == "0" && $2 == "0") print $3}' | xargs git checkout HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment