Created
August 1, 2022 08:43
-
-
Save pmiossec/33453ec053f560f8239e02ab601ed561 to your computer and use it in GitHub Desktop.
Export all git Stashes
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
mkdir stashes | |
refs=$(git stash list|cut -d: -f1) | |
for ref in $refs; do git stash show "$ref" -p > ./stashes/$ref.patch; done | |
#refs=$(git rev-parse $refs|tac) | |
#oldpath=$PWD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment