Push rejected: Push to origin/ma
作者:
M_ENG | 来源:发表于
2019-01-11 11:14 被阅读0次#执行
git pull origin master –allow-unrelated-histories
#执行
git push -u origin master -f
#出现这个错误
remote: GitLab: You are not allowed to push code to protected branches
on this project.
1、主干master项目没有提交权限、修改提交账户为管理者
2、修改GitLab 项目push权限
路径:项目--Repository--Branches
点击 Protected branches can be managed in project settings
点击 Protected Branches Expand
点击 unprotect
重新添加 protect 选择管理者和开发者都可push
本文标题:Push rejected: Push to origin/ma
本文链接:https://www.haomeiwen.com/subject/mhtzrqtx.html
网友评论