mirror of
https://github.com/tj/git-extras.git
synced 2026-09-16 02:16:17 -04:00
Exempt master from deleted branches
This is helpful for those who use the `git-flow` branch model and might be surprised to find that this script deletes their master branch.
This commit is contained in:
parent
1f8971bdbf
commit
36596a33b3
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
|
||||
git branch --merged | grep -v "\*" | grep -v master | xargs -n 1 git branch -d
|
||||
|
|
|
|||
Loading…
Reference in a new issue