2017-09-14 64 views
2

我在使用的Visual Studio 2017年的任何版本时,从Visual Studio团队服务本地克隆库的问题,从森林狼队服务的存储库。这里是我得到的错误:无法在本地克隆使用Visual Studio的任何版本的2017年

Error encountered while cloning the remote repository: Git failed with a fatal error. 
fatal: Win32Exception encountered. 
Failed to write credentials 
error: cannot spawn askpass: No such file or directory 
fatal: could not read Username for 'https://XXX.visualstudio.com':terminal prompts disabled 

我有另一台运行Visual Studio 2015的计算机,一切正常。我有这个问题有什么理由吗?

+0

是否能重现在其他机器上这个问题已经VS 2017安装?什么是VS 2017的详细版本?您可以升级到最新版本,然后重试。另一方面,尝试安装最新版本的git for windows。类似问题:https://social.msdn.microsoft.com/Forums/vstudio/en-US/fb195b4b-4029-44d4-93a1-f6652a917cdb/unable-to-login-in-visual-studio-2017?forum=visualstudiogeneral –

+0

您可能会修复VS并重试。 –

+0

@ starain-MSFT,我修复了VS,我卸载了然后安装了Git for Windows,仍然没有运气。我卸载了VS2017企业版并安装了社区版本,但仍然没有任何进展。 – Richard77

回答

0

我有同样的错误更新的Visual Studio 2017
这里后,我的错误信息(这几乎等同于你的,有一些细微的差别)

Error: cannot spawn askpass: No such file or directory
Error encountered while pushing to the remote repository: Git failed with a fatal error.
could not read Password for ' https://[email protected] ': terminal prompts disabled

在Visual Studio问我要每一次的密码,我不能作出任何拉或推请求

这似乎是错误的Visual Studio

这里是解决方案:

  1. 打开命令提示符
  2. 运行setx GIT_TRACE %UserProfile%\git.log
  3. 运行setx GCM_TRACE %GIT_TRACE%
  4. 重新启动PowerShell控制台
  5. 再次运行git的命令,再次与再现问题的目标。
  6. 回到命令提示符
  7. 运行setx GIT_TRACE ""
  8. 运行setx GCM_TRACE ""

其实,问题已经解决了,我只是在执行前三个步骤之后。

这里是源https://developercommunity.visualstudio.com/content/problem/31370/git-error-when-running-vs-under-account-from-diffe.html

相关问题