3

enter image description here

While trying to do that, I keep getting this error but my URL is correct. However, when I tested with public repo it works fine

Super Kai - Kazuya Ito
  • 22,221
  • 10
  • 124
  • 129
Bharath Kashyap
  • 133
  • 1
  • 2
  • 9

1 Answers1

4

Since April 2021, no more password is accepted when authenticating Git operations on GitHub.com: you would need to use (or cache) a PAT (Personal Access Token)

Since a public repository does not require authentication when cloning, you would not see the same error message.

So: Double-check what password is used.
Said password could be cached in your Windows Credential Manager: see what git config credential.helper returns.

If it is manager-core, open the windows Credential Manager, and see if you have a github.com entry.
If you do, check the cached password.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for the response. However this is the first time I'm trying on git and there's no password cached in my windows credential manager. I just followed, PAT link you provided and created a token in my account. Now should I use PAT token in the place of password to clone the private repo in eclipse? – Bharath Kashyap Sep 23 '21 at 07:09
  • @BharathKashyap Exactly: use the PAT as password for your Git operation. – VonC Sep 23 '21 at 07:11
  • I used PAT as password to clone the repo and it works now. Thanks for your response, much appreciated ! – Bharath Kashyap Sep 23 '21 at 07:16
  • @BharathKashyap Great! Well done. – VonC Sep 23 '21 at 07:20
  • @bha is there anything missing to this answer, that you originally accepted? – VonC Jan 10 '22 at 09:54