If you use Https to communicate with your git repository, Es, Github or VisualStudioOnline, you usually setup credential manager to avoid entering credential for each command that contact the server. With latest versions of git you can configure wincred with this simple command.
git config --global credential.helper wincred
This morning I start getting error while I’m trying to push some commits to GitHub.
$ git push remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/ProximoSrl/Jarvis.DocumentS tore.git/'
If I remove credential helper (git config –global credential.helper unset) everything works, git ask me for user name and password and I’m able to do everything, but as soon as I re-enable credential helper, the error returned. This problem is probably originated by some corruption of stored credentials, and usually you can simply clear stored credentials and at the next operation you will be prompted for credentials and everything starts worked again. The question is, where are stored credential for wincred?
If you use wincred for credential.helper, git is storing your credentials in standard windows Credential Manager
You can simple open credential manager on your computer,
Figrue 1: Credential manager in your Control Panel settings
Opening Credential manager you can manage windows and web credentials. Now simply have a look to both web credentials and windows credentials, and delete everything related to GitHub or the server you are using. The next time you issue a git command that requires authentication, you will be prompted for credentials again and the credentials will be stored again in the store.
Gian Maria.
thanks! this problem was annoying me for a few days now.
Thanks. You helped me.
Thanks! The article was really helpful in solving my issue.
Thanks for the explanation and solution. it worked for me..
Thank you so much, I have been fighting with this problem so hard and this finally fixed it!
Dint work for me even after doing this.. :(
Are you using a different credential manager?
Great! Thank you!
This solved the problem for me thanks.
Thank you so much for this info!
Thank you so so so much!
My problem is solved!
Thanks, that’s useful. Instead of deleting git credentials I just updated new password and it works
Thanks. It helped me.
Great!! I was banging my head until i saw this. Thanks!
Awesome! Thank you.
solved the issue on windows10. thanks!
This did the trick. Thanks!
Thanks, this solved my problem.