nix*_*x86 2 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 sending the request.
cannot spawn askpass: No such file or directory
could not read Username for 'https://github.com': terminal prompts disabled
Run Code Online (Sandbox Code Playgroud)
我和我的团队在几个不同用户的几台机器上遇到过这个问题.我们使用单个git命令解决了这个问题,该命令将全局窗口凭据设置为此处解释的credential.helper
git config --global credential.helper wincred
Run Code Online (Sandbox Code Playgroud)
在我们解雇了上述命令后,所有克隆,推拉都像魅力一样.您只需确保存储在Windows凭据中的凭据是您要使用的凭据.
| 归档时间: |
|
| 查看次数: |
1892 次 |
| 最近记录: |