Skip to content

Instantly share code, notes, and snippets.

@mstred
Created April 20, 2018 09:51
Show Gist options
  • Save mstred/a1c81c68e7c1041eced07f960f043a50 to your computer and use it in GitHub Desktop.
Save mstred/a1c81c68e7c1041eced07f960f043a50 to your computer and use it in GitHub Desktop.
Delete all local branches but the one checked out
alias gbrda='git branch | gsed "s/^[^*]/git branch -D/e"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment