3.7 Protecting branches

https://docs.gitlab.com/ee/user/project/protected_branches.html

In a repository go to settings > repository > protected branches

set

  • “allowed to merge”: masters
  • “allowed to push”: no one