git cannot logon on popup window, cannot use stored password

Viewed 897

Today my brain was somehow fuked up so I upgraded git to version 2.29.1.windows.1. Now every time I try to 'git pull' or 'git clone' etc., it shows a popup window as below. I have two problems here.

First, even I input the correct username and password, it show "Logon failed, use ctrl+c to cancel basic credential prompt."

Second, no matter I set credential.helper to manager or store, it always pops up the window. However, the password was stored actually.(~/.git-credential if using store and in Credential Manager if using manager).

enter image description here

2 Answers

TLDR; If you are still seeing this popup: GitHub Login requesting username and password, it is because your installed git version is too old!

For the slow-witted like myself, who didn't realize I had an older version of git installed (2.28.1 in my case), make sure that you update git to the latest version. As soon as I updated to 2.34.1 I was finally able to authenticate using a github token.

Related