delete all local branches
delete all local branches except "master"
git checkout master && git branch | grep -v "master" | xargs git branch -D
Written by Jin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Branch
Authors
niklongstone
42.01K
muzzlefork
11.98K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#