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
天蓬老师2017-05-02 09:48:55
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.