Last Updated: February 25, 2016
·
153
· kamilmichalak

Remove all local branches except master

Current sprint/milestone just ended and you want to remove all that old branches? Run this one line in your command line:

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