[Solved] Logon failed, use ctrl+c to cancel basic credential prompt. unable to access

Welcome to reprint the original blog. Please attach the blog link when reprinting. Thank you for your respect.


Problem Description:

Local environment: Windows 10 system

Compiler: idea 2018.3.4

Code warehouse: GitHub

When submitting the test code with [git push], the prompt “login failed, use Ctrl + C to cancel the basic voucher” appears, as follows:

Logon failed, use ctrl+c to cancel basic credential prompt. unable to access…

Because the incident happened suddenly, only the error information was copied, and there was no screenshot to keep the certificate. Forgive me, O (╯ □ ╯) O


Cause analysis:

Ha ha, to tell you the truth, it’s really not clear.

However, after the problem was finally solved, the GitHub official website sent me an email, which roughly said that they “do not recommend using git’s password for basic authentication”.

Therefore, I have reason to suspect that this is the result of my login with GitHub account and password in idea. It is recommended to log in in in the way of “git account + token”, which should be all right.

The screenshot of the email content is as follows:


Solution:

On the [git bash] command line, enter the following command, and then push the branch again.

setx GIT_TRACE ""

My case:

There are other methods, such as [git account + token] login recommended by the government, but they are not as simple as the above method. It is not a big problem and there is no need to pay attention, so I won’t be wordy.

I hope I can help you!!

Read More: