Last Updated: February 25, 2016
·
701
· Chip Castle

Remove remote git branches merged into master

git branch -r --merged master \| 
sed 's/ *origin\///' \| 
grep -v 'master$' \| 
xargs -I% git push origin :%

For more UNIX tips, please check out
Learning the UNIX Command Line.

Enjoy,
Chip