首页 > 错误异常 > 开发工具 > 版本控制 > Git
今天往gitlab上推送代码的时候一直推送不成功,报错:remote: GitLab: You are not allowed to push code to protected branches on this project
最佳解决方案
默认情况下,developer 角色是没有权限推送代码到 master 主干的
解决方案有二:
一、Gitlab的Setting中 打开 Protected branches 启用 master 分支可被 developer 角色提交即可
二、新键分支,然后推送代码到新的分支即可
赠人玫瑰手有余香
当您的问题有新的回答,将给你推送消息通知
扫一扫,关注Hierror微信公众号
hierror 2019 © hierror.com 京ICP备13026190号-1