【问题标题】:Cloning into ' Error encountered while cloning the remote repository: Git failed with a fatal error.Authentication failed for TFS Visual Studio 2019克隆到 ' 克隆远程存储库时遇到错误:Git 失败并出现致命错误。TFS Visual Studio 2019 的身份验证失败
【发布时间】:2020-12-09 00:46:06
【问题描述】:

修复这个错误

我找到了解决方法。事实证明,对于某些(但不是全部)安装,RC 安装程序正在安装 git 的预发布版本。您可以通过在 Visual Studio 副本上安装最新版本的 git 来解决此问题(VS2017 不使用 PATH 中的 git)。

在此处下载 32 位版本的 git:https://github.com/git-for-windows/git/releases/download/v2.11.1.windows.1/PortableGit-2.11.1-32-bit.7z.exe

运行您下载的文件。你会看到一个弹出窗口,询问你想将 git 解压到哪里,输入这个文件夹:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git

【问题讨论】:

  • 不要将答案放在问题中,将其添加为答案。这个问题甚至都不清楚了

标签: git tfs cloning


【解决方案1】:

这另一个也等着解决。

Remove the TFS related credentials from Credential Manager
In Credential Manager add the new updated Generic Credentials for the TFS account. Generally, this would overwrite the cached credentials.
Close all Visual Studio instances, delete %LOCALAPPDATA%\.IdentityService as you did.
Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\7.0\Cache
Clear all the browser caches especially for the stored password
Restart Visual Studio > Team Explorer > Manage Connections to check if the Enter credential dialog popup. Just try this several times. Based on my test the dialog will popup the first time, but if you cancel it, then you have to restart VS to popup it again.
Run Visual Studio as another user:

cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE

runas /netonly /user:<account> devenv.exe

Enter the user possword, then Team Explorer > Manage Connections

【讨论】:

  • 您可以接受您的回答。在这种情况下,其他人可以直接找到有用的解决方案。谢谢。
猜你喜欢
  • 2018-11-02
  • 1970-01-01
  • 2017-02-21
  • 2021-09-26
  • 1970-01-01
  • 2020-10-24
  • 2022-10-17
  • 2012-06-18
  • 1970-01-01
相关资源
最近更新 更多