I am on mac OS unlike this post:
I have password conf
I tried with browser URL for the repository then
git clone $(browserURL)
it prompted for my username and then my password
It worked fine then
None of the above solutions worked for me and I don't have admin rights on my laptop, but they eventually led me to the git tools credential storage doc :
My setup Windows 10 | git version 2.18.0.windows.1 | Clone through HTTPS link
This solution works if you use wincred as credential helper :
> git config --global credential.helper
wincred
Changing the helper to "cache" should do the trick, as it will ask you to provide your credentials again. To set it to cache, just type :
> git config --global credential.helper cache
Check your update is active:
> git config --global credential.helper
cache
You should now be able to clone / pull / fetch as before.
If your trying to login Gitlab with your existing Git account. You need to reset your password of Gitlab, for the first time.
Before any transaction with git that your machine does git checks for your authentication which can be done using
In simple words, this happened because the credentials stored in your machine are not authentic i.e.there are chances that your password stored in the machine has changed from whats there in git therefore
Head towards, control panel and search for Credential Manager look for your use git url and change the creds.
There you go this works with mostly every that windows keep track off
git config --system --unset credential.helper
then enter new password for Git remote server.
For me it was some other git URL placed in config file, so I did change it manually:
[remote "origin"]
url = git@gitlab.com:prat3ik/my-project.git
And it was working!!