ww2zqa
Last Updated: February 25, 2016
·
489
· chip

Remove remote git branches merged into master

git
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