GitLogon failed, use ctrl+c to cancel basic credential prompt.

Posted Xavier Jiezou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GitLogon failed, use ctrl+c to cancel basic credential prompt.相关的知识,希望对你有一定的参考价值。

问题描述

git 推送代码变更的时候一直提示登录 github,输入正确的用户名和密码后仍提示错误,错误日志如下:

Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/XavierJiezou/opencv-chinese-flag.git/'

从日志里面其实也看不出什么信息。唯一值得在意的是,我前几分钟还是能正常提交代码的,突然就不能提交了,并且从 github 删除仓库后再重建还是不能解决问题。不过这也间接地证明了 github 是没有问题的,只可能是 git 本身的问题。

解决方案

一般来说,更新一下 git 就能解决问题,如果你是 Windows 电脑,你只需运行如下命令:

git update-git-for-windows

注意:运行上方更新命令时请关闭网络代理,不然更新会报错。运行命令 git config --global --unset http.proxy 即可关闭代理。

引用参考

https://stackoverflow.com/questions/64962533/logon-failed-use-ctrlc-to-cancel-basic-credential-prompt

以上是关于GitLogon failed, use ctrl+c to cancel basic credential prompt.的主要内容,如果未能解决你的问题,请参考以下文章

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)解决

启动 Nessus 服务:bind() failed : Address already in use系统是

nginx重启 failed (98: Address already in use)

nginx重启出现问题记录(nginx重启 failed (98: Address already in use))

Web server failed to start. Port 8080 was already in use.