Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Git failed with terminal error. Terminal prompts disabled #885

Open
9 tasks
apuglieseMidatlantic opened this issue Jan 30, 2020 · 0 comments
Open
9 tasks

Comments

@apuglieseMidatlantic
Copy link

apuglieseMidatlantic commented Jan 30, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant