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.
3 avenue du Blues,
L-4368, Belvaux
Luxembourg

© Continuous S.A. 2017