Created
August 4, 2016 13:24
-
-
Save FabreFrederic/9f1061ed8d38a2857a944c8d0f8bba74 to your computer and use it in GitHub Desktop.
Delete all the branches except master and develop 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
# Delete all the branches except master and develop branches | |
git branch -D $(git branch | grep -Ev "(\*|master|develop)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment