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
40.29K

muzzlefork
11.78K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#