克隆到 ' 克隆远程存储库时遇到错误:Git 失败并出现致命错误。TFS Visual Studio 2019 的身份验证失败



修复此错误

我找到了一个变通办法。事实证明,对于某些(但不是所有(安装,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

另一个也在等待解决。

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%MicrosoftTeam Foundation7.0Cache
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 Studio2017EnterpriseCommon7IDE
runas /netonly /user:<account> devenv.exe
Enter the user possword, then Team Explorer > Manage Connections

相关内容

最新更新