天天看点

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上建项目的时候,你只有访客的权限(可以克隆,查看项目),但是不可以提交代码的。如下图:

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