【问题标题】:Windows Password changed, now I can't access a TFS GIT RepositoryWindows 密码已更改,现在我无法访问 TFS GIT 存储库
【发布时间】:2018-06-18 21:30:49
【问题描述】:

Windows 密码已更改,现在我无法访问 TFS GIT 存储库。

C:\MyRepo>git pull
fatal: Authentication failed for 'https://tfsgit.somedomain.com/Dev/_git/MyRepo/'

注意:

  • 使用 git 版本 2.17.1.windows.2
  • git config --global credential.helper manager
  • git config --list --show-origin - 表明我实际上正在使用凭证管理器。
  • 控制面板 -> 用户帐户 -> 凭据管理器 -> 通用凭据 - 更新/更改/删除这些没有任何作用

【问题讨论】:

    标签: git authentication tfs active-directory


    【解决方案1】:
    1. 打开 Internet Explorer 到https://tfsgit.somedomain.com/Dev/_git/MyRepo/
    2. 使用 TFS Git Web 应用程序进行身份验证。
    3. 打开命令窗口。重新尝试 git pull

    C:\MyRepo>git pull remote: Microsoft (R) Visual Studio (R) Team Foundation Server remote: Found 1661 objects to send. (315 ms) Receiving objects: 100% (1661/1661), 100.94 MiB | 470.00 KiB/s, done. Resolving deltas: 100% (783/783), completed with 388 local objects.

    1. 新密码将在凭据管理器中更新。

    【讨论】:

    • 在凭据管理器中更改它对我有用。存储库中有两个以 git: 开头的条目都需要更改。
    • 对我来说是@jacobappleton 他的解决方案有效。
    【解决方案2】:

    从 Windows 控制面板中删除您的 git 凭据(正如大家所建议的那样)

    如果 cmd 仍然没有提示您重新输入 git 凭据。例如

    致命:身份验证失败 ....

    您可以尝试卸载您的 git-windows 并选择“无”选项。避免使用凭据帮助器。

    Select None for Git-Windows

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-30
      • 2013-09-05
      • 2014-09-02
      • 1970-01-01
      • 2013-07-21
      相关资源
      最近更新 更多