在开发中使用gitlab向master分支推送时,经常会出现如下的错误提示

remote: GitLab: You are not allowed to push code to protected branches on this project

为了解决这个问题,需要在gitlab中进行一下设置,具体设置方法如下:
在这里插入图片描述

这里只是介绍功能性的设置,在实际开发中尽量让developer在开发分支开发,不要动master分支。
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐