Created
April 9, 2015 17:26
-
-
Save seancoyne/2f58d0e795e100cf2dff to your computer and use it in GitHub Desktop.
stage (git add) only non-whitespace changes
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
git add `git diff -w |grep '^+++' |cut -c7-` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from http://stackoverflow.com/questions/3515597/git-add-only-non-whitespace-changes#comment31087595_6313392