TortoiseGit到Gitlab存储库的HTTP基本访问被拒绝 [英] TortoiseGit to Gitlab repository HTTP Basic Access denied

查看:418
本文介绍了TortoiseGit到Gitlab存储库的HTTP基本访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于TortoiseGit从2.6.0.0更新到2.7.0.0,所以我无法再通过使用TortoiseGit访问我的GitLab.我设法在2.6上进行获取,拉入和推入,但是从2.7开始,今天还行不通.我有两台计算机,它们的设置完全相同,一台仍然在2.6上,另一台在2.7上. 2.7版本为我提供了错误

Since the update of TortoiseGit from 2.6.0.0 to 2.7.0.0 I cannot access my GitLab anymore through use of TortoiseGit. I managed to fetch, pull and push on 2.6, but as of today with 2.7 this does not work. I have two computers with exactly the same settings, one still on 2.6 and another on 2.7. The 2.7 version provides me the error

remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/company/NL/projects/name.git/'

这与此处一个>.但是,我也尝试了在那里显示的所有选项,但没有一个起作用.我不断看到用于Windows的Git凭据管理器"弹出窗口,在其中提供我的用户名和密码,这些用户名和密码可用于登录GitLab并在另一台计算机上工作,但仍然无法通过身份验证.使用wincred也不起作用.

This is exactly the same error as mentioned here. But, I tried all of the options displayed there too, with none of them working. I keep getting the "Git Credential Manager for Windows" popup, where I provide my username and password that work for logging in to GitLab and work on the other computer, but I still get the authentication failed. using wincred does not work either.

看着正在运行的计算机,我确实在Windows凭据管理器的通用凭据"类别中看到一个git:https://gitlab.com凭据.与此类似的凭据不会显示在失败"的计算机上.在那里手动添加我的凭据可以阻止Windows的Git凭据管理器出现,但是仍然会导致拒绝访问错误.

Looking at the working computer, I do see a git:https://gitlab.com credential in the "Generic Credentials" category of the windows credential manager. A credential similar to this does not show up at the 'failing' computer. Manually adding my credentials there stops the Git Credential Manager for Windows from appearing, however, still results in the access denied error.

其他可能有帮助的项目:

Other items that might assist:

  • 我已删除TortoiseGit 2.7并安装了2.6(但尚未这样做) 解决问题)
  • 我已删除并重新安装了TortoiseGit 2.7
  • 我已将Git更新为最新版本(截至2018年8月22日为2.18.0)
  • 未启用SSH或2FA
  • git config credential.helper设置为经理"
  • I have removed TortoiseGit 2.7 and installed 2.6 (yet this did not solve the issue)
  • I have removed and reinstalled TortoiseGit 2.7
  • I have updated Git to the latest version (2.18.0 as of 22/08/2018)
  • SSH or 2FA is not enabled
  • git config credential.helper is set to 'manager'

当然,我的关键问题仍然是:如何再次通过git访问我的远程存储库?

Of course my key question remains: how do I access my remote repository again through git?

推荐答案

我刚刚和我的一个同事一起看到了这个.他还没有启用2FA,但是GitLab希望他提供一个个人访问权限在Windows凭据弹出窗口中使用令牌代替密码.

I just saw this with a colleague of mine. He also did not have 2FA enabled, yet GitLab was expecting him to provide a Personal Access Token instead of a password, in the Windows Credentials popup.

查看链接以查看如何生成该令牌,然后仅在弹出的凭据中提供以下内容:

Check out the link to see how to generate that token, and then just provide the credentials popup with:

  • 用户名:您的GitLab用户名
  • 密码:您生成的此令牌

此外,如果Windows不再要求您提供凭据,则应该可以从控制面板"进入凭据管理器",然后查找并删除(错误的)存储的GitLab凭据.

Also, as an aside, if Windows stops asking you for your credentials, you should be able to go into the "Credential Manager" from Control Panel, and then find and delete your (erroneous) stored GitLab credentials.

这篇关于TortoiseGit到Gitlab存储库的HTTP基本访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆