Created
April 8, 2013 11:52
-
-
Save gusano/5336265 to your computer and use it in GitHub Desktop.
Delete all branches that are already merged into the currently checked out branch.
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
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
Till told me about this excellent tool:
https://github.com/mloughran/git-cleanup