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
Example output:
$ git old-branches | format_branch_deletes
# schiang@comverge.com
git branch -d remove_new_relic # 301a52b (5 hours ago) <schiang@comverge.com>
git branch -d something # 301a52b (5 hours ago) <schiang@comverge.com>
$ git old-branches github/master | format_branch_deletes
# schiang@comverge.com
git push thinkerbot :30434977_fix_the_clock # a262408 (3 weeks ago) <schiang@comverge.com>
git push thinkerbot :add_non_existant_methods # f47c5c9 (10 days ago) <schiang@comverge.com>
git push thinkerbot :manual_requires # c9bcc3f (3 weeks ago) <schiang@comverge.com>
git push thinkerbot :unnecessary_fsr # 54f4eb4 (9 days ago) <schiang@comverge.com>
The idea is that you can check the delete commands and execute as needed.