私有 github 存储库身份验证问题

时间:2021-07-02 19:52:22

标签: git authentication github

我正在使用我的工作 Windows 10 电脑。我们有一个私有的 github 存储库。 99% 的 repo 身份验证失败(无论是拉/推等)。

PS C:\Users\my_account> git pull
Logon failed, use ctrl+c to cancel basic credential prompt.
Username for 'https://github.com': git_handle
Password for 'https://git_handle@github.com':
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/private.git/'

我尝试了很多东西,例如

  • 无需个人访问令牌即可进行身份验证,
  • 设置个人访问令牌,
  • 删除存储在 Web Credentials 中的先前 github 凭据
  • 使用了两个不同版本的 git
    • 公司提供的那个 - v2.22
    • 删除上述内容并从网络安装最新版本 (v2.32.0)

奇怪的是,它偶尔会起作用,但大多数情况下不起作用。有没有调试方法(获取更多日志或获取身份验证失败原因的最低详细信息)?

0 个答案:

没有答案