0

I had to clone a private repository (to which I had the access) into my local system from GitHub. when I tried git clone https://github.com/organizationName/repoName.git in the Visual Studio Code terminal, it threw errors like

Cloning into 'repoName'...
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/organizationName/repoName.git/'

It even failed to clone by the Visual Studio Code UI.

However, executing the same Git clone command in the system terminal resulted in asking for:

Cloning into 'repoName'...
Username for 'https://github.com': myUserName
Password for 'https://myUserName@github.com':

Which got successful after entering credentials.

What settings or changes do I have to do in Visual Studio Code to resolve this?

Peter Mortensen
  • 30,030
  • 21
  • 100
  • 124
KIRAN KUMAR B
  • 107
  • 1
  • 6

0 Answers0