Clearing git credentials

On windows, I’ll occasionally get a message that looks like this…

> git clone https://www.geohub.com/repos/foo.git
Cloning into ‘foo’…
fatal: Authentication failed for ‘www.geohub.com/repos/foo.git/’

I used to be able to resolve this be clearing the git credentials from the Windows credential manager, but I noticed the credential are no longer displayed there for some reason.

Running this command seems to clear the credentials OK and allow me to move forward…

git config --global --unset credential.helper

Leave a Comment