不能推git,visual studio。 Git失败并带有致命错误。致命的:遇到HttpRequestException [英] Can't push git, visual studio. Git failed with a fatal error. fatal: HttpRequestException encountered

查看:1150
本文介绍了不能推git,visual studio。 Git失败并带有致命错误。致命的:遇到HttpRequestException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

解决方案

原因: 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 'https://github.com': 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆