Run this one-liner to remove local Git branches that have been merged back into master
.
git branch --merged | grep -v '\*\|master\|develop' | xargs -n 1 git branch -d
Run this one-liner to remove local Git branches that have been merged back into master
.
git branch --merged | grep -v '\*\|master\|develop' | xargs -n 1 git branch -d