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

Git failed with a fatal error. could not read Username for ‘https://.visualstudio.com’: terminal prompts disabled

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:

Visual Studio 2019 - Cloning a repository - git
Fig : Visual Studio 2019 – starting
Visual Studio 2019 - Cloning a repository - git
Fig : Visual Studio 2019 – Cloning a repository – git

Issue:

Visual Studio 2019 - Cloning a repository - git - error occurred - Git failed with a fatal error. could not read Username for ‘https://<name of my project in GIT>.visualstudio.com’: terminal prompts disabled
Fig : Visual Studio 2019 – Cloning a repository – git – error occurred – “Git failed with a fatal error. could not read Username for ‘https://<name of my project in GIT>.visualstudio.com’: terminal prompts disabled”
Visual Studio 2019 - Cloning a repository - git - error occurred - "Git failed with a fatal error. could not read Username for ‘https://<name of my project in GIT>.visualstudio.com’: terminal prompts disabled"
Fig : Visual Studio 2019 – Cloning a repository – git – error occurred – “Git failed with a fatal error. could not read Username for ‘https://<name of my project in GIT>.visualstudio.com’: terminal prompts disabled”

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 :

Error encountered while cloning the remote repository: Installation

Visual Studio 2019 - Cloning a repository - git - error occurred - "Error encountered while cloning the remote repository: Installation"
Fig : Visual Studio 2019 – Cloning a repository – git – error occurred – “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.
Visual Studio Installer
Fig : Visual Studio Installer
Visual Studio Installer - Git for Windows and GitHub extension for Visual Studio
Fig : Visual Studio Installer – Git for Windows and GitHub extension for Visual Studio
  • 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 🙂

This site uses Akismet to reduce spam. Learn how your comment data is processed.