这是我在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
发布评论