Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git Can';t在Visual Studio 2017中使用团队资源管理器拉或推_Git_Visual Studio_Team Explorer - Fatal编程技术网

Git Can';t在Visual Studio 2017中使用团队资源管理器拉或推

Git Can';t在Visual Studio 2017中使用团队资源管理器拉或推,git,visual-studio,team-explorer,Git,Visual Studio,Team Explorer,我在Visual Studio 2017中使用Git。从昨天开始,每次我尝试使用Team Explorer从远程存储库中推送或拉取时,都会出现以下错误: Git failed with a fatal error. HttpRequestException encountered. An error occurred while sending the request. HttpRequestException encountered. An error occurred while

我在Visual Studio 2017中使用Git。从昨天开始,每次我尝试使用Team Explorer从远程存储库中推送或拉取时,都会出现以下错误:

Git failed with a fatal error.
HttpRequestException encountered.
   An error occurred while sending the request.
HttpRequestException encountered.
   An error occurred while sending the request.
cannot spawn askpass: No such file or directory
could not read Username for 'https://github.com': terminal prompts disabled

不久前我遇到了这个问题,我可以确认升级到GCM 1.14.0对我来说是可行的

这很可能是因为GitHub关闭了早于1.2的TLS版本。Visual Studio 2017和Git for Windows都已更新。更多信息可在此处找到:


希望这有帮助

将Visual Studio更新到最新版本对我来说很有效。

我的团队在几个不同的机器上遇到了这个问题,有几个不同的用户。我们用一个git命令解决了这个问题,该命令将windows凭据全局设置为credential.helper


在我们发出上述命令后,所有的克隆、推拉都像一个符咒一样工作。您只需确保存储在Windows凭据中的凭据是您想要使用的凭据。

您可以尝试将git重新安装到
v。2.16.2
version-2018-02-15应与GCM版本
v1.14.0.
和git版本
2.16.2.windows.1
一起使用。
git config --global credential.helper wincred