Last active
August 29, 2015 13:59
-
-
Save katylava/10907671 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So awesome. And shouldn't this work with remote branches too with git br -v, and git push :$b? Heh I guess that's a little scary.