Permalink
Browse files

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.
  • Loading branch information...
1 parent 1f8971b commit 36596a33b3d546231bd0e0a591b4d3d1c1e4aa7f @egrim egrim committed Jul 22, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/git-delete-merged-branches
@@ -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

0 comments on commit 36596a3

Please sign in to comment.