Last active
October 24, 2017 22:16
-
-
Save cuperman/a1f0d2748b34032ea747aff0eeb56c96 to your computer and use it in GitHub Desktop.
git alias: add no whitespace
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
[alias] | |
addnw = !bash -c 'git diff -U0 -w --no-color $@ | git apply --cached --ignore-whitespace --unidiff-zero -' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful git aliases: