1
votes

I have a repository on git hub, and I'm trying to clone this repository to a different computer. I'm going to the repository -> open in visual studio -> after the computer filled the repository address and the folder to save it, I'm pressing clone, but the following error happens:

Git failed with a fatal error.

fatal: AggregateException encountered. One or more errors occurred.

error: cannot spawn askpass: No such file or directory

fatal: could not read Username for 'https://github.com': terminal prompts disabled`

I have tried the following :

change repository address to [email protected]/User_Name/project_name.git

also tried https://{username}:{password}@github.com/{username}/project.git

what else should I do? Thanks!

1

1 Answers

0
votes

Your Visual studio 2017 installation has an older version of the Git credential manager for Windows. Upgrade to the latest version and configure this specific installation in your global git config to ensure Visual Studio is aware of the latest GCM that's available to it.

See also (different issue, same problem):