Skip to content

Instantly share code, notes, and snippets.

@tracehelms
Created July 30, 2018 15:55
Show Gist options
  • Save tracehelms/55b938333fdebab766f714e05ea03f29 to your computer and use it in GitHub Desktop.
Save tracehelms/55b938333fdebab766f714e05ea03f29 to your computer and use it in GitHub Desktop.
" This will list ALL branches and give you the chance to choose the ones being deleted
" Be sure to remove branch names from the file that are important:
" master, develop, staging, current branches, etc.
"
git branch >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -D </tmp/merged-branches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment