Skip to content

Instantly share code, notes, and snippets.

@rberrelleza
Last active June 25, 2020 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rberrelleza/a0b2ed11b53ad94b33949811fac88663 to your computer and use it in GitHub Desktop.
Save rberrelleza/a0b2ed11b53ad94b33949811fac88663 to your computer and use it in GitHub Desktop.
clean git branches
git branch | grep -v 'master\|main' > /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