问题描述
代码提交到Git上,我可以正常push代码, 但是同事无法push,并提示报错“You are not allowed to push code to protected branches on this project.”
问题定位
登录gillab查看项目管理者身份,
我的身份是Maintainers
同事的身份是Developers
问题解决
Since GitLab 9.0
Project: “Settings” -> “Repository” -> scroll down to “Protected branches”.
Now you can select who is allowed to merge or push into selected branches (for example: you can turn off pushes to master at all, forcing all changes to branch to be made via Merge Requests). Or you can click “Unprotect” to completely remove protection from branch.
设置–仓库–保护分支
设置Maintainers+Developers 都有push代码的权限
更多推荐
“You are not allowed to push code to protected branches on this project.”
发布评论