How do I clone git private repository in eclipse?

3.1k Views Asked by At

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

1

There are 1 best solutions below

5
On

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.