【发布时间】:2018-02-23 22:09:11
【问题描述】:
这是我在 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
【问题讨论】:
-
这不是那个问题的重复。 Daedalon 是正确的; GitHub 删除 pre-TLS 1.2 导致了这个问题。
-
我建议将接受的答案更改为 Lachezar 的答案,原因在 Suamere 对当前(2018 年 3 月 2 日)接受的答案的评论中提到。