问题:
在gitlab的project deploy key 中“+ New Deploy Key”key
在本地push时总是提示"
GitLab: Deploy keys are not allowed to push code.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
"
仔细查了一下,gitlab的deploy key和 在user的
参考:
https://docs.gitlab.com/ce/ssh/README.html#applications
在gitlab的project deploy key 中“+ New Deploy Key”key
在本地push时总是提示"
GitLab: Deploy keys are not allowed to push code.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
"
仔细查了一下,gitlab的deploy key和 在user的
SSH Keys 中绑定的key的区别
https://docs.gitlab.com/ce/ssh/README.html#applications
Deploy keys
Deploy keys allow read-only or read-write (if enabled) 『popexizhi: 应该一定是enabled 来的key 』access to one or multiple projects with a single SSH key pair.
This is really useful for cloning repositories to your Continuous Integration (CI) server. By using deploy keys, you don't have to setup a dummy user account.
If you are a project master or owner, you can add a deploy key in the project settings under the section 'Repository'. Specify a title for the new deploy key and paste a public SSH key. After this, the machine that uses the corresponding private SSH key has read-only or read-write (if enabled) access to the project.
You can't add the same deploy key twice using the form. If you want to add the same key to another project, please enable it in the list that says 'Deploy keys from projects available to you'. All the deploy keys of all the projects you have access to are available. This project access can happen through being a direct member of the project, or through a group.
Deploy keys can be shared between projects, you just need to add them to each project.
-------------------------------------------------------------------
在同样的问题下给的回复:"SSH - GitLab: Deploy keys are not allowed to push code. fatal: Could not read from remote repository"
https://gitlab.com/gitlab-org/gitlab-ce/issues/5910
Deploy keys only have read-only access to the repo. If you wish to push, you need to add an SSH key to your user and make sure git is using that key, not the deploy key.
-------------------------------------------------------------------
[next]
另外有人回复
没有评论:
发表评论