Created
September 28, 2018 13:07
-
-
Save wayne-weibel/46c862981b9a558d107a4e4fdffc34a1 to your computer and use it in GitHub Desktop.
bash delete local branches except matching
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 --list | grep -vP 'master|develop' | xargs git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment