Created
April 1, 2014 19:43
-
-
Save cddr/9921561 to your computer and use it in GitHub Desktop.
Fix whitespace before commit
This file contains 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
git diff HEAD --no-color > /tmp/stage.diff | |
git apply -R /tmp/stage.diff | |
git apply --whitespace=fix /tmp/stage.diff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment