TzookB

Git Remove All Local Branches

Fri Nov 22 2019

After a few sprints you git repo may explode with a bunch of different branches. In that case you can easilly remove all of them (except master) with this simple command:

git branch | grep -v "master" | xargs git branch -D