git delete all branches that are merged into current branch

git branch --merged | grep -v "*" | grep -v master | grep -v develop | xargs -n 1 git branch -d

Ref­er­ences


http://stackoverflow.com/questions/6127328/how-can-i-delete-all-git-branches-which-have-been-merged

You may also like...

Leave a Reply

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