我如何从吉特拉布(Gitlab)克隆?
当我尝试从吉特拉布(Gitlab)克隆一个项目时,它说“未能验证”。 我正确地键入了用户名和密码(我已经尝试过几次),配置了我的SSH键。我尝试了访问令牌而不是密码,但仍然无法克隆。我正在使用HTTPS克隆
When I try to clone a project from GitLab it says "Failed to authenticate".
I typed my username and password correctly(I've tried it few times), configured my SSH key. I've tried my access token instead of my password and still unable to clone. I'm using HTTPS clone
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您配置了SSH键,请确保:
表示SSH键确实正确验证了您的身份:
ssh -tv [email  prectioned]
在克隆gitlab存储库时使用SSH URL
,然后SSH键无关紧要。
检查您的
git config -lobal recertential.helper
:如果设置,它可能会缓存错误的凭据。If you have configure your SSH key, make sure:
said ssh key does authenticate your properly:
ssh -Tv [email protected]
to use an SSH URL when cloning your GitLab repository
Then the SSH key does not matter.
Check your
git config --global credential.helper
: if set, it might have cached the wrong credentials.请从:
。
确保选中所有必需的框,至少您应该选择
read_repository
和write_repository
。下次您克隆项目时,请使用您的电子邮件和此访问令牌而不是密码。
Please create an access token from:
https://gitlab.com/-/profile/personal_access_tokens
Make sure to check all the required boxes, at least you should select
read_repository
andwrite_repository
.Next time when you clone the project, use your email and this access token rather than your password.