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:
Evan Grim 2014-07-21 23:05:30 -05:00
parent 1f8971bdbf
commit 36596a33b3

View file

@ -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