Last active
July 31, 2017 09:30
-
-
Save ghernandez345/b208e6e2b059f07dd847282285554a4f to your computer and use it in GitHub Desktop.
Clean up local branches based on merged remote 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
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment