---
title: "حذف الفروع المدمجة مسبقًا في Git"
description: "يمكنكم استثناء مزيد من الفروع من الحذف عبر egrep -v 'master|develop|foo|bar'"
canonical: https://oozou.com/til/delete-already-merged-branchs-in-git-36
locale: ar
date: 2020-10-13
topic: shell
---

# حذف الفروع المدمجة مسبقًا في Git

> يمكنكم استثناء مزيد من الفروع من الحذف عبر egrep -v 'master|develop|foo|bar'

Published: 2020-10-13 · Topic: [shell](https://oozou.com/ar/til-topics/shell) ([markdown](https://oozou.com/ar/til-topics/shell.md))

```
$ git branch --merged | egrep -v 'master|develop' | xargs -n 1 git branch -d
```

يمكنكم استثناء مزيد من الفروع من الحذف عبر *egrep -v 'master|develop|foo|bar'*

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/ar/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
