2017-09-14 83 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

相關問題