Created
June 2, 2015 16:21
-
-
Save oranj/6917817563e5d57c9d4e to your computer and use it in GitHub Desktop.
gitclean
This file contains 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
#! /bin/bash | |
echo "Before cleanup:"; | |
git branch; | |
echo "----"; | |
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d; | |
echo "----"; | |
echo "After cleanup:"; | |
git branch; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stolen from Tyler Kearns here