Skip to content

Instantly share code, notes, and snippets.

@mrdavidburns
Forked from malclocke/gist:943565
Created July 11, 2013 21:58
Show Gist options
  • Save mrdavidburns/5979625 to your computer and use it in GitHub Desktop.
Save mrdavidburns/5979625 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