Last Updated: February 25, 2016
·
297
· markets

Clean up merged branches

Delete all branches that are already merged into the current branch:

Local

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

Remote

git branch --merged | grep -v "\*" | xargs -n 1 git push --delete origin