Skip to content

Instantly share code, notes, and snippets.

@Tobur
Forked from malclocke/gist:943565
Created January 30, 2014 07:51
Show Gist options
  • Save Tobur/8704270 to your computer and use it in GitHub Desktop.
Save Tobur/8704270 to your computer and use it in GitHub Desktop.
$ git branch -r --merged |
awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' |
xargs git push origin --delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment