mirror of
https://github.com/cupcakearmy/memoir.git
synced 2025-09-05 15:30:41 +00:00
Create remove-merged-branches
This commit is contained in:
20
pages/git/remove-merged-branches
Normal file
20
pages/git/remove-merged-branches
Normal 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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user