Pages

Saturday, January 24, 2015

Delete all local git branches that have been merged

$ git branch --merged | grep -v "\*" | xargs -n 1 git branch -d

This checks if the branch has been merged with master and then will delete the ones that have been. Keeps your local git repo nice and clean from all the branches.




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/1CFirhs

No comments:

Post a Comment