Skip to content

Instantly share code, notes, and snippets.

@perusio
Last active December 26, 2015 02:59
Show Gist options
  • Save perusio/7083057 to your computer and use it in GitHub Desktop.
Save perusio/7083057 to your computer and use it in GitHub Desktop.
Drop all stashes from git in a single command line.
git stash list | cut -f 1 -d ':' | sort -r | xargs -n 1 git stash drop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment