Skip to content

Instantly share code, notes, and snippets.

View myw's full-sized avatar

Misha Wolfson myw

View GitHub Profile
@myw
myw / delete_merged_remotes.sh
Created April 26, 2011 20:02 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
#!/bin/sh
git branch -r --merged | \
awk -F/ '!/>|master/&&/origin/{print $2}' | \
xargs git push origin --delete