don't remove master, develop or current branch
This commit is contained in:
@@ -66,7 +66,7 @@ del_pr() {
|
||||
}
|
||||
|
||||
clean_branches() {
|
||||
BRANCHES=`git branch | grep -v \*`
|
||||
BRANCHES=`git branch | grep -v 'master\|develop\|\*'`
|
||||
for i in ${BRANCHES}; do
|
||||
git branch -d $i
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user