tj.git-extras/bin/git-delete-merged-branches
Evan Grim 36596a33b3 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.
2014-07-21 23:05:30 -05:00

4 lines
90 B
Bash
Executable file

#!/bin/sh
git branch --merged | grep -v "\*" | grep -v master | xargs -n 1 git branch -d