这是我在 Visual Studio 上的错误.我不知道是否有解决此问题的配置.此外,我被限制安装 git 命令行工具.
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 推荐答案原因: GitHub 更新了服务器端的安全要求.它们不再支持 TLS 1.0 和 1.1,只支持 1.2.用于 Windows 的旧版 Git Credential Manager 使用 1.0.
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.
解决方案:更新 Git for Windows.2.14.3 及更高版本包括适用于 Windows 的最新 Git 凭据管理器.
Solution: Update Git for Windows. Version 2.14.3 and newer include an up-to-date Git Credential Manager for Windows.
或者,您可以仅更新 Git CredentialWindows 管理器 本身.它从 1.14.0 版本开始支持 TLS 1.2.
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
发布评论