Last active
June 27, 2017 14:20
-
-
Save philipobenito/431a6b61f25f6c6906a17c204bddb307 to your computer and use it in GitHub Desktop.
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
# don't recommend running as one script | |
# list merged remote branches | |
git branch -a --merged live | grep -v live | |
# delete remote merged branches | |
git branch -a --merged live | grep -v live | xargs -n 1 git push --delete origin | |
# list merged local branches | |
git branch --merged live | grep -v live | |
# delete local merged branched | |
git branch --merged live | grep -v live | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment