GIT : Visual Studio 2019 – resolved the issue – Git failed with a fatal error. could not read Username for ‘https://.visualstudio.com’: terminal prompts disabled? OR Error encountered while cloning the remote repository: Installation

Hi All,
LIFE IS BEAUTIFUL 🙂 I hope we all are safe 🙂 STAY SAFE, STAY HEALTHY, STAY HOME 🙂
Today new issue and resolution 🙂
Actually I am repeating this article. I previously had already same kind of article – GIT : Visual Studio 2017 – resolved the issue – Git failed with a fatal error. could not read Username for ‘https://.visualstudio.com’: terminal prompts disabled?
I have faced same issue again but this time for Visual Studio 2019. Last time article was for Visual Studio 2017. Also two solutions which mentioned in last article was worked for Visual Studio 2017 that time but today those solutions are not worked for Visual Studio 2019. So new resolution 🙂
Background:
- I have installed Visual Studio 2019 community edition on my laptop – https://visualstudio.microsoft.com/downloads/
- I am trying to clone my project through GIT

Issue:


Git failed with a fatal error.
could not read Username for ‘https://<name of my project in GIT>.visualstudio.com’: terminal prompts disabled
Error encountered while cloning the remote repository: Git failed with a fatal error.
could not read Username for ‘https:// <name of my project in GIT> .visualstudio.com’: terminal prompts disabled
Resolution :
- So as per my previous article – GIT : Visual Studio 2017 – resolved the issue – Git failed with a fatal error. could not read Username for ‘https://.visualstudio.com’: terminal prompts disabled? , I applied both the below solutions mentioned
- Removed the credentials from credential manager
- Deleting “Git” folder from the location “C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer“.
- But none of the above approach worked for me. Second approach – deleting “Git” folder caused an new below issue for me 🙁
Error encountered while cloning the remote repository: Installation

- I tried couple of approaches :
- Git for Windows and GitHub extension for Visual Studio is installed : If not then install them using – “Visual Studio Installer” as
- Launch the “Visual Studio Installer” as shown in below fig
- Make sure if “Git for Windows” and “GitHub extension for Visual Studio” components / tools are installed.
- If not please select those and install them.
- But the installation of “Git for Windows” and “GitHub extension for Visual Studio” also not resolved the issue.
- So again Google my friend 🙂 googled a bit and find out one more new approach – Installing the latest version of the Git credential Manager for Windows
- We could download the latest version of “Git credential Manager for Windows” from – https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases
- I downloaded latest version and installed it and it seems I could clone my code 🙂 It worked like a charm 🙂
References:
Thanks for reading 🙂 Feel free to discuss / comment / questions 🙂 SHARING IS CARING 🙂
Share In Teams:Enjoy the beautiful life 🙂 Have a FUN 🙂 HAVE A SAFE LIFE 🙂 TAKE CARE 🙂
Thank you very much for this! I spent a whole day trying to troubleshoot this and the Windows Credential Manager did the trick for me!
Cheers!
Hi inerdtian, glad to know that it helped you 🙂