Lorenz
Lorenz

Reputation: 61

Unable to clone my git repo

I tried to clone my git repo with git extensions but entered the wrong credentials. Now I didn´t get any prompt anymore to change my login data. I´m just getting this error:

Clone failed
remote error: Invalid username or password.

How could I force git to show me the login prompt again? I think I have to clear the cache. How do I do it?

Upvotes: 0

Views: 147

Answers (2)

AgilePro
AgilePro

Reputation: 5616

On Windows, To force GIT to re-prompt for username and password (that is you want to change one, the other, or both) you have to:

  1. Go to Control Panal
  2. Find and open Windows Credential Manager
  3. In the Generic Credentials list, find an entry for the GIT host you are working with
  4. Click the option to "Remove from Vault"

The next time you try "git clone ..." you will be prompted for logging in with both username and password.

Note that GitLab gives you username and an email but you must use your email as your username in order to clone a repository. (It took a few times through the Windows Credential Manager to figure that out.)

Upvotes: 1

Lorenz
Lorenz

Reputation: 61

I have solved it myself. You have to delete the entry in Windows Credential Manager

Upvotes: 0

Related Questions