Gitlab clone project: authentication failed

亡梦爱人 提交于 2020-07-09 13:20:07

问题


I tried to simply clone a Gitlab project jusing both HTTPS and SSH and they both don't work and print back an atuhentication failed message.

When trying with https address:

git clone https://gitlab.com/project.aa/project.git

Cloning into 'frontend'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/project.aa/project.git'

And with my SSH key that's the message I get:

Cloning into 'frontend'...
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

What can I do?


回答1:


Try log-out and login with the same credentials that you're trying to use for cloning the repository. If the problem persists: In Windows, Search for Credential Manager. In that choose Windows manager. Select your Gitlab credentials and modify it.



来源:https://stackoverflow.com/questions/61588373/gitlab-clone-project-authentication-failed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!