Last active
February 27, 2016 01:17
-
-
Save cabloo/20661f523fbadf865f32 to your computer and use it in GitHub Desktop.
Git cleanup merged branches
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 pull origin HEAD | |
# http://stevenharman.net/git-clean-delete-already-merged-branches | |
git branch --merged develop | grep -v "master" | grep -v "develop" | xargs -n 1 git branch -d | |
git branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment