Run in a git repo to delete all local branches that have already been merged into a branch you specify.
git-branch-cleanup
Just add the code to your ~/.bash_functions
file and open a new Terminal. Easily done by copying the code and running this:
pbpaste >> ~/.bash_functions