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

时间:2020-08-19 17:36:54

标签: git tfs cloning

要修复此错误

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

在此处下载git的32位版本: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

1 个答案:

答案 0 :(得分: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
相关问题