Getting "fatal: Authentication failed" -error when sending git commands in Windows 10

Jesper Wilfing picture Jesper Wilfing · Mar 16, 2017 · Viewed 55.7k times · Source

After updating domain password, accessing git-repo is no longer possible. VS Code and Source Tree as well as Visual Studio are returning the following error message on pull, push, fetch etc..

fatal: Authentication failed

Normally a credentials pop-up should appear however this is not happening. Also the common recommendation...

git config --global credential.helper wincred

...is not working.

Answer

Jesper Wilfing picture Jesper Wilfing · Mar 16, 2017

The password is stored in windows credential manager and needs to be updated. Open command prompt and enter the following command to view the list of stored passwords:

rundll32.exe keymgr.dll,KRShowKeyMgr

Scroll down in the list until you spot the git-related entries. Click it and edit the correct password.

Voilà!

Windows 10 - Stored user names and passwords