Git Delete All Feature Branches

Last modified: 
Tuesday, April 14th, 2015
Topics: 
Git

A one-liner to delete all Git feature branches prefixed with the term "feature/".

git branch | grep feature/* | xargs git branch -D


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.