Delete multiple branches at once
Delete multiple branches who matches a regex in one command
git branch | cut -c3- | egrep "^(fix|fixbug|bugfix)/.+" | xargs git branch -D
Written by Youssef Boubdir
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#