Find and delete old git branches that are no longer needed.
Clone the repo and add to your path (just for ease of use):
git clone git://gist.github.com/2891516.git gist-2891516
cd gist-2891516
export PATH="$PATH:$(pwd)"
Now go to your project.
# list branches that have been merged to the current branch
git old-branches
# list branches that have been merged to the remote:
git old-branches github/master
# format branch delete commands according to user:
git old-branches github/master | format_branch_deletes
# filter branch delete commands by user:
git old-branches github/master | format_branch_deletes doej
Example output:
# simon.a.chiang@gmail.com
git branch -d remove_new_relic # 301a52b (4 hours ago)
git branch -d do_a_great_thing # 301a52b (2 hours ago)
# john.doe@gmail.com
git branch -d what_was_that # 301a52b (10 days ago)