HttpRequestException encountered. An error occurred while sending the request.

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。


版权声明:本文为stupider0623原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。