formatting

This commit is contained in:
2025-02-01 11:17:28 +01:00
parent cdec1b86b8
commit 4550b301a1
2 changed files with 7 additions and 0 deletions

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)