Do not remove develop / main branches
- `develop` is the default for git-flow - `main` the "new default" for git in general Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3549cd2239
commit
1352f933fc
1 changed files with 9 additions and 9 deletions
|
@ -25,7 +25,7 @@ git pull --rebase && git submodule update --init --recursive
|
|||
step "Cleaning local branches..."
|
||||
for branch in $(git branch --merged | grep -v '^*'); do
|
||||
# Do not delete master as the main branch
|
||||
if (test "${branch}" != "master"); then
|
||||
if ! [[ $branch =~ (develop|main|master) ]]; then
|
||||
git branch -d ${branch}
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue