Last active
August 29, 2015 14:11
-
-
Save MickaelBergem/1faa654f90ccba0cb927 to your computer and use it in GitHub Desktop.
Remove all local branches that have been merged
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
# Will remove all merged branches, except the current one. | |
git remote prune origin && 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
To add it as an alias :