katylava
4/16/2014 - 5:03 PM

git-cleanup

#!/usr/bin/env bash

git remote prune origin;

for b in `git br --merged master | grep -v "^\s\+master$" | grep -v "^\*"`; do
    git br -d $b;
done;

# gist git-cleanup -u 10907671