-
-
Save kinwahlai/5dfaba681f6a491d01510b6b832f72e5 to your computer and use it in GitHub Desktop.
Export git stashes to patch files using the stash name as the file name
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 stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> " $1$2$3 ".diff" ) }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"" $1$2$3 ".diff\"" ) }'
this fix the export of stash with description