Create remove-merged-branches

This commit is contained in:
Nicco 2025-01-20 11:46:37 +01:00 committed by GitHub
parent 3e69437018
commit 5d333bee79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,20 @@
---
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)