Visual Studio Github错误

时间:2018-02-28 12:01:23

标签: github visual-studio-2017

我无法从VS2017同步push或pull到我的远程存储库。我收到了这个错误:

Error encountered while pushing to the remote repository: Git failed with a 
fatal error. 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
Pushing to https://github.com/cabbytech/CabbyTechDesktop.git

我不确定如何在Visual Studio中为Github重新输入我的凭证。这是我第一次遇到这个错误并且在我当前的项目中多次同步。

1 个答案:

答案 0 :(得分:1)

要解决此问题,我打开了Visual Studio Installer并选择更新我的Visual Studio 2017社区安装。

安装完成后,我启动了Visual Studio并打开了Team Explorer选项卡,选择了Manage Connections并再次登录到Github。

这样做之后一切都恢复了(比如克隆,同步,提交等等。)。