remote: GitLab: You are not allowed to push code to protected branches on this project.
To 106.13.91.39:webtest/wow.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@106.13.91.39:webtest/wow.git'
提交代码时报这个

原因是没有提交代码到master分支的权限


到gitlab修改权限就可以提交了

本文详细解释了在尝试向GitLab的受保护分支推送代码时遇到的权限拒绝错误,并提供了如何调整项目设置以允许推送到master分支的方法。
2182

被折叠的 条评论
为什么被折叠?



