Created
October 21, 2016 16:11
-
-
Save zflat/9db471d675c06f8ab9a6c8fa46247ba0 to your computer and use it in GitHub Desktop.
Save all stashes as patch files
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 stash list | awk '{b= gensub(" ", "_", "g", $0); system("git stash show -p " substr($1, 0, length($1)-1) " > ~/Desktop/" b ".diff")}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment