Current situation:
has multiple branches, including a mainline branch master
, which is mainly used for release
Other branches are their respective local development branches, which can be named here, for example: test1
, test2
, test...
Question:
All members can modify and merge any branch to the mainline branch master
(you can even delete master
directly)
Final result you want to achieve:
Can you set permissions for the mainline branch master
to allow only specific users to modify, synchronize, and merge other branches
Check out this tutorial lab
Yes, you can set different permissions for different branches
In gitlab, set master as a protected branch and not allow developers to push. In github, there is also a protected branch function under Settings->Branches.
Doesn’t gitlab have this protection function?