我如何从吉特拉布(Gitlab)克隆?

发布于 2025-01-31 23:06:22 字数 110 浏览 3 评论 0原文

当我尝试从吉特拉布(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

如梦亦如幻 2025-02-07 23:06:22

如果您配置了SSH键,请确保:

配置了我的SSH键。我正在使用HTTPS克隆

,然后SSH键无关紧要。

检查您的git config -lobal recertential.helper:如果设置,它可能会缓存错误的凭据。

If you have configure your SSH key, make sure:

configured my SSH key. I'm using HTTPS clone

Then the SSH key does not matter.

Check your git config --global credential.helper: if set, it might have cached the wrong credentials.

梦情居士 2025-02-07 23:06:22

请从:

确保选中所有必需的框,至少您应该选择read_repositorywrite_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 and write_repository.

Next time when you clone the project, use your email and this access token rather than your password.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文