Created
December 6, 2013 19:27
-
-
Save baldurrensch/7830696 to your computer and use it in GitHub Desktop.
Delete merged branches
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
# github is the name of my remote | |
git branch --merged | grep -v "\*" | xargs -n 1 git push --delete github | |
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment