Skip to content

Instantly share code, notes, and snippets.

@lancerushing
lancerushing / gist:4062845
Created November 12, 2012 23:43 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git branch -r --merged |
grep -v '>' |
grep -v master |
cut -d "/" -f 2- |
xargs git push origin --delete