这是我在 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/