Created
December 14, 2017 17:31
-
-
Save kaushikvira/967800241424a65fc88a0c6489517043 to your computer and use it in GitHub Desktop.
Delete all git local branches except develop and master
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 "develop" | grep -v "master" | xargs git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment