Skip to content

Instantly share code, notes, and snippets.

@braynm
Created July 31, 2017 07:03
Show Gist options
  • Save braynm/e085498bcc14253d6d930411803a7ef7 to your computer and use it in GitHub Desktop.
Save braynm/e085498bcc14253d6d930411803a7ef7 to your computer and use it in GitHub Desktop.
# delete all branch except master
`git for-each-ref --format '%(refname:short)' refs/heads | grep -v master | xargs git branch -D`
# delete all stash
`git stash clear`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment