Skip to content

Instantly share code, notes, and snippets.

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 patrickjholloway/00c46e116a1e61d41a91028543995eb6 to your computer and use it in GitHub Desktop.
Save patrickjholloway/00c46e116a1e61d41a91028543995eb6 to your computer and use it in GitHub Desktop.
#!/bin/zsh
cp -a . ../old-console
mkdir ../stashes
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"../stashes/" substr($1$2$3, 0, 40) ".diff\"" ) }'
cd ..
rm -rf ./console
git clone git@github.com:Kinvey/console.git
cd ./console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment