Last Updated: February 25, 2016
·
641
· catchamonkey

Removes branches that are merged into master

git branch --merged master | grep -v 'master$' | xargs git branch -d

Finds branches that have been merged into master, excludes master, then deletes them all.