首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >克隆到‘在克隆远程存储库时遇到错误: Git失败,TFS Visual Studio 2019出现致命的error.Authentication失败

克隆到‘在克隆远程存储库时遇到错误: Git失败,TFS Visual Studio 2019出现致命的error.Authentication失败
EN

Stack Overflow用户
提问于 2020-08-20 01:36:55
回答 1查看 1.7K关注 0票数 0

修复此错误

我找到了一种解决方法。事实证明,对于某些(但不是所有)安装,RC安装程序安装的是git的预发布版本。您可以通过在Visual Studio副本上安装最新版本的git来修复此问题(VS2017不会在您的路径中使用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 (Git)\Microsoft Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\x86

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-08-20 01:41:49

这个问题也有待解决。

代码语言:javascript
复制
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
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63492227

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档