Created
June 7, 2016 09:40
-
-
Save ivan-leschinsky/347e62fe50a35e199fbafd10467a552d to your computer and use it in GitHub Desktop.
Removes all local git branches with name containing your string
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
| # my-prefix- is branches prefix | |
| git branch | grep my-prefix- | xargs git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment