gitlab推送代码报错remote: GitLab: You are not allowed to push code to protected branches on this project.

问题:在gitlab上面创建了项目,使用普通用户去推送代码,报错remote: GitLab: You are not allowed to push code to protected branches on this project.

 

分析原因:

原因是普通用户分配的权限是developer,这个权限的用户是没有权限推送代码的

 

解决办法:

登录gitlab管理员账号 ===>选择项目成员 ===> 修改成员角色

 

posted @ 2022-05-15 12:58  lucky_tomato  阅读(10150)  评论(0编辑  收藏  举报