Skip to content

Instantly share code, notes, and snippets.

@greenimpala
Forked from malclocke/gist:943565
Created January 11, 2013 15:55
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 greenimpala/4511731 to your computer and use it in GitHub Desktop.
Save greenimpala/4511731 to your computer and use it in GitHub Desktop.
$ git branch -r --merged |
awk -F'/' '/^ *origin/{if(!match($0, /(>|integration)/)){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