git - 无法推送 git,visual studio。 Git 因 fatal error 而失败。致命的 : HttpRequestException encountered

标签 git visual-studio-2017

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

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 updated their security requirements on the server side .他们不再支持 TLS 1.0 和 1.1,只支持 1.2。适用于 Windows 的旧版 Git Credential Manager 使用的是 1.0。

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

或者你可以只更新 Git Credential Manager for Windows本身。它从 1.14.0 版本开始支持 TLS 1.2。

关于git - 无法推送 git,visual studio。 Git 因 fatal error 而失败。致命的 : HttpRequestException encountered,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48956927/

相关文章:

svn - 是否有 Git 的 Subversion 用户指南?

c# - 从 .Net Framework 4.6.1 控制台应用程序转到 Core 2.0 控制台应用程序后,Newtonsoft DeserializeObject 出现错误

.net - 使用 MSBuild, '$(SolutionDir)' 错误地解析为 C :\when running 'msbuild/t:restore'

visual-studio - 如何手动重启 Visual Studio?

git - 排除子项目提交 Git

git - 从 git 数据库中完全删除提交

c++ - ISO C++ 标准 - 关于检查依赖库的规则。为什么?

c# - Console.Out 输出显示在输出窗口中,需要在 AllocConsole() 中

git - Azure 数据工厂。使用许多不同的 git 分支

git - 如何通过 SHA-1 检查提交是否存在于 Git 存储库中