GitLab: You are not allowed to push code to this project.

Posted 尔嵘

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GitLab: You are not allowed to push code to this project.相关的知识,希望对你有一定的参考价值。

产生:

在提交项目时,发现一直提示没有被允许提交代码。

$ git push origin master
> GitLab: You are not allowed to push code to this project.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


原因:

在git上建项目的时候,你只有访客的权限(可以克隆,查看项目),但是不可以提交代码的。如下图:

解决办法:

让项目的管理员或者创建者将你的权限修改成Maintainer

以上是关于GitLab: You are not allowed to push code to this project.的主要内容,如果未能解决你的问题,请参考以下文章

remote: GitLab: You are not allowed to push code to protected branches on this project.

remote: GitLab:You are not allowed to push code to protected branches on this project

Gitlab提交代码:You are not allowed to push code to this project.fatal: unable to access requested URL

Gitlab提交代码:You are not allowed to push code to this project.fatal: unable to access requested URL

IDEA使用Git提交代码remote: GitLab: You are not allowed to push code to protected branches on this project(

git合并分支成功,但是push失败(remote: GitLab: You are not allowed to push code to protected branches on this pr