Last active
February 11, 2021 00:00
-
-
Save AhmedHelalAhmed/8686bcf30484da77d31deb7e20f949fc to your computer and use it in GitHub Desktop.
The simpler way to delete all branches but keeping others like "release" 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 "release" | grep -v "master" | xargs git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source