git branch delete useless

Over the time the local git branches may pile up and are no longer used after merging. A cleanup can help with that.

 

git branch | grep -v "master" | grep -v "development" |grep -v ^* | xargs git branch -D;

 

Have fun!

Leave a Reply

Your email address will not be published. Required fields are marked *