Pruning Local GIT branches

Introduction

GIT is an amazing source control system, although if there is not an automatic pruning policy setup, you can find yourself with hundreds of local branches.  I did some googling and didn’t find much on the topic, other than deleting branches one at a time!  I solved it myself and am sharing my solution here.

I could write some code that interfaces directly with GIT (I have done this before with Mecurial), although I wanted something quick and easy. Continue reading