不能推git,visual studio。 Git失败并带有致命错误。致命的:遇到HttpRequestException

编程入门 行业动态 更新时间:2024-10-25 17:19:24
本文介绍了不能推git,visual studio。 Git失败并带有致命错误。致命的:遇到HttpRequestException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这是我在visual studio上的错误。 我无法弄清楚是否有一个配置来解决这个问题。 此外,我受限于安装git命令行工具。

推送到远程存储库时遇到错误:Git失败带有致命错误。 致命:遇到HttpRequestException。 发送请求时发生错误。 错误:无法产生askpass:没有这样的文件或目录致命:无法读取'github'的用户名:终端提示已禁用

解决方案

原因: GitHub更新了服务器端的安全要求。他们不再支持TLS 1.0和1.1,只有1.2。

解决方案:更新 Git for Windows 。版本2.14.3及更新版本包含适用于Windows的最新Git Credential Manager。

另外,您也可以只更新 Git Credential Manager for Windows 本身。它支持版本1.14.0以后的TLS 1.2。

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

解决方案

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.

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

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:22:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1597266.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   visual   git   studio   HttpRequestException

发布评论

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

>www.elefans.com

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