Tips of the Day: Remove all local branches already merged into master

March 27th, 2017 Posted by Blog, Tips 0 thoughts on “Tips of the Day: Remove all local branches already merged into master”

Remove all local branches already merged into master:

git branch --merged master | grep -v ‘^ *master$’ | xargs git branch -d

Continuous S.A.
Avenue des Hauts-Fourneaux 9
L-4362 Esch-sur-Alzette
Luxembourg

© Continuous S.A. 2017