1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-23 02:28:58 +00:00

Remove branches that have already been merged with master

This commit is contained in:
Vincent Klaiber 2015-07-15 09:40:18 +02:00
parent 68f6970979
commit b6b103fe70

View File

@ -22,3 +22,8 @@ git update-ref -d HEAD
```sh ```sh
git diff --name-only --diff-filter=U git diff --name-only --diff-filter=U
``` ```
# Remove branches that have already been merged with master
```sh
git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d
```