Created
October 9, 2013 16:22
-
-
Save mgaitan/6903944 to your computer and use it in GitHub Desktop.
apply the current changes ignoring whitespaces [1] (keeping a popped stash as backup). [2] [1] http://stackoverflow.com/a/6311302
[2] http://stackoverflow.com/questions/89332/recover-dropped-stash-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
| #/usr/bin/env sh | |
| git stash && git stash pop && git diff -w > foo.patch && git checkout . && git apply foo.patch && rm foo.patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment