Skip to content

Instantly share code, notes, and snippets.

@tarnagas
Created February 28, 2020 15:53
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 tarnagas/43b67abfed2bb6609e24669860e67886 to your computer and use it in GitHub Desktop.
Save tarnagas/43b67abfed2bb6609e24669860e67886 to your computer and use it in GitHub Desktop.
git branch --merged master | grep -Ev "^\s+(release/.*|master)$" | while read line; do git branch -d "$line" && git push origin --delete "$line"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment