git - 使用 Git 克隆 TFS 存储库时身份验证失败

标签 git tfs visual-studio-code

我一直使用这个命令创建本地存储库:

git clone http://TFSServer:8080/tfs/Scripts/_git/ProjectName

但是,当我现在这样做时,我收到了这条消息:

Cloning into 'ProjectName' ...

fatal: Authentication failed for 'http://TFSServer:8080/tfs/Scripts/_git/ProjectName/'


启动 Visual Studio Code 时我看到此错误:

unable to get local issuer certificate

当尝试从 VSCode 推送到 TFS 时(我过去一直能够这样做),我看到了这个错误:

Authentication failed on the git remote


检查repo权限后,我可以看到我有完整的权限:

enter image description here

最佳答案

事实证明,这只是在我需要更改 Windows 登录密码后才开始发生的。

密码已在本地和 TFS 服务器上更新,但未在 git 的缓存凭据中更新。

修复

控制面板 -> 凭据管理器 -> 通用凭据

然后更新git:http://ServerName:1234/的密码

现在我可以从命令行和 VS Code 成功访问存储库。

关于git - 使用 Git 克隆 TFS 存储库时身份验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39999361/

相关文章:

python - VS Code Azure 部署 Python Http 触发器功能失败 - 找不到 GLIB_2.27

git - 错误 TF30170 : "The process template you are using does not support Git." when creating a team project

repository - 使用 "git commit -a"命令时遇到问题

git - 分支 : different config files for release/development

asp.net-mvc - TFS 上的 Visual Studio 2013 构建错误

tfs - 在azure devops中发布成功完成后如何触发构建?

visual-studio - 测试管理器但没有 TFS 访问权限

visual-studio-code - 摆脱下划线(链接)

visual-studio-code - 是否有与 Notepad++ 的用户定义语言配置等效的 VSCode?

git - 在 openshift 上部署应用程序 - git 和 ssh key 不起作用