View gist:adf4d1d584df69c064c7
git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d