Created
April 26, 2018 07:29
-
-
Save mohsinhijazee/7798fb3f6a857fa25068065fdd52cc19 to your computer and use it in GitHub Desktop.
Deleting all branches other then current and master
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 every branch other then current and specified branches | |
git branch -D `git branch | grep -E '^[^\*]' | grep -Fv "master" | grep -Fv "develop"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment