Skip to content

Instantly share code, notes, and snippets.

@pmiossec
Created August 1, 2022 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmiossec/33453ec053f560f8239e02ab601ed561 to your computer and use it in GitHub Desktop.
Save pmiossec/33453ec053f560f8239e02ab601ed561 to your computer and use it in GitHub Desktop.
Export all git Stashes
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