Git-Credential-Manager-for-Windows icon indicating copy to clipboard operation
Git-Credential-Manager-for-Windows copied to clipboard

Git failed with terminal error. Terminal prompts disabled

Open apuglieseMidatlantic opened this issue 5 years ago • 0 comments

Which Version of GCM are you using ? From a command prompt, run git credential-manager version and paste the output. C:\Windows\system32>git credential-manager version Git Credential Manager for Windows version 1.20.0

Which service are you trying to connect to

  • [ ] Azure DevOps
  • [XX ] Azure DevOps Server (TFS/on-prem)
  • [ ] GitHub
  • [ ] GitHub Enterprise
  • [ ] Bitbucket
  • [ ] Other? - please describe;

If AzureDevops Hosted describe your url

  • [ ] dev.azure.com/org
  • [XX ] org.visualstudio.com

If you're using Azure DevOps, can you access the repository in the browser via the same URL?

  • [XX ] Yes
  • [ ] No, I get a permission error.
  • [ ] No, for a different reason:

If you're using Azure DevOps, and the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.

  • [ XX] I only see one identity.
  • [ ] I checked each and none worked.

Expected behavior Trying to clone code in Visual Studio, I expect to enter my credentials and receive the files.

Actual behavior After entering my credentials, I see the response: Cloning into 'C:\AAAU code\New AAAU_App'... Logon failed, use ctrl+c to cancel basic credential prompt. Logon failed, use ctrl+c to cancel basic credential prompt. Error: cannot spawn /c/program files (x86)/microsoft visual studio/2019/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No error Error encountered while cloning the remote repository: Git failed with a fatal error. could not read Username for 'https://jaxenconsulting.visualstudio.com': terminal prompts disabled

Set the env variables GCM_TRACE=1 and GIT_TRACE=1 and run your git command. Redact any private information and attach the log

apuglieseMidatlantic avatar Jan 30 '20 17:01 apuglieseMidatlantic