无法推送 git,Visual Studio.Git 因致命错误而失败.致命:遇到 HttpRequestException

编程入门 行业动态 更新时间:2024-10-25 21:15:22
本文介绍了无法推送 git,Visual Studio.Git 因致命错误而失败.致命:遇到 HttpRequestException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这是我在 Visual Studio 上的错误.我不知道是否有解决此问题的配置.此外,我被限制安装 git 命令行工具.

Here is my error on visual studio. I can't figure out if there is a config to fix this. Additionally I am restricted from installing git command line tools.

Error encountered while pushing to the remote repository: Git failed with a fatal error. fatal: HttpRequestException encountered. An error occurred while sending the request. error: cannot spawn askpass: No such file or directory fatal: could not read Username for 'github': terminal prompts disabled

推荐答案

原因: GitHub 更新了服务器端的安全要求.它们不再支持 TLS 1.0 和 1.1,只支持 1.2.用于 Windows 的旧版 Git Credential Manager 使用 1.0.

Cause: GitHub updated their security requirements on the server side. They no longer support TLS 1.0 and 1.1, only 1.2. Older Git Credential Manager for Windows versions used 1.0.

解决方案:更新 Git for Windows.2.14.3 及更高版本包括适用于 Windows 的最新 Git 凭据管理器.

Solution: Update Git for Windows. Version 2.14.3 and newer include an up-to-date Git Credential Manager for Windows.

或者,您可以仅更新 Git CredentialWindows 管理器 本身.它从 1.14.0 版本开始支持 TLS 1.2.

Alternatively you can update only the Git Credential Manager for Windows itself. It supports TLS 1.2 from version 1.14.0 onwards.

更多推荐

无法推送 git,Visual Studio.Git 因致命错误而失败.致命:遇到 HttpRequestException

本文发布于:2023-11-15 19:21:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1597258.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Visual   git   Studio   HttpRequestException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!