memoir/pages/git/remove-merged-branch.md
2025-02-01 11:17:28 +01:00

328 B

tags
git
branch
clean
delete

Delete all local branches that are already merged.

This command is useful if you have a buch of local branches that you don't need anymore.

git branch --merged | grep -v \* | xargs git branch -D

Original SO Link