Last active
May 2, 2019 06:24
-
-
Save devben/90d4e58eb768ba86d9e0c4c360776c17 to your computer and use it in GitHub Desktop.
git delete local branches
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 'bugfix/*' | |
| git branch -d `git branch --list 'bugfix/*'` | |
| # or | |
| git branch --list 'feature/*' | |
| git branch -d `git branch --list 'feature/*'` | |
| # or for the brave | |
| git branch --merged | egrep -v "(^\*|master|develop|origin|release*)" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment