无法推送 git,Visual Studio.Git 因致命错误而失败.致命:遇到 HttpRequestException [英] Can't push git, visual studio. Git failed with a fatal error. fatal: HttpRequestException encountered

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

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