Is it possible in Gitlab to disable force push for all branches, but allow to delete them?

Viewed 3531

We use GitLab and want to disable force pushes and rebase for developers, but we also want them to be able to merge and delete branches, except protected ones. And we want to spread these rules to all our GitLab projects (there are about 130 of them) and to all branches. Is it possible?

We tried to use protected branches - in addition to protected master we mark all branches as protected (wildcard *), and allow developers to push and merge, but protected branches are also prohibited from deletion (even when merge request is accepted), so it doesn't work for us. Hope someone can suggest any working solution.

1 Answers
Related