--- 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. ```bash git branch --merged | grep -v \* | xargs git branch -D ``` [Original SO Link](https://stackoverflow.com/a/10610669)