Skip to content

Instantly share code, notes, and snippets.

View ByScripts's full-sized avatar

Thierry Goettelmann ByScripts

  • Byscripts
  • France
View GitHub Profile
@VersionMismatch
VersionMismatch / stashExporter
Created March 30, 2015 21:36
Export git stashes to patch files using the stash name as the file name
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> " $1$2$3 ".diff" ) }'