Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save earvinpiamonte/f1fbbaf3765143f62e6ea021bb90277b to your computer and use it in GitHub Desktop.
Save earvinpiamonte/f1fbbaf3765143f62e6ea021bb90277b to your computer and use it in GitHub Desktop.
Delete multiple branch having the same prefix in a single command - Git
git branch -d `git branch --list 'YOUR-BRANCH-PREFIX-*'`
# or
# git branch -D `git branch --list 'YOUR-BRANCH-PREFIX-*'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment