Last active
September 7, 2017 04:26
-
-
Save ishikawa/9d76b4cefb9049a2dcf80dc9b3db0895 to your computer and use it in GitHub Desktop.
Delete local branches except master/deployment/current
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 | grep -v -e 'master' -e 'deployment/' -e 'develop' -e '*' | xargs git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment