当前位置:   article > 正文

git push Logon failed, use ctrl+c to cancel basic credential prompt.remote: 错误解决

logon failed, use ctrl+c to cancel basic credential prompt. remote: [session

报错信息:

Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/seanwong-byte/spring_diabetes.git/'
 

在github settings-developer settings-创建一个新的令牌

重新执行git push

第一次输入用户名密码

第二次要求openssh输入用户名时输入令牌 密码取消输入

再在git bash里回车,就成功push了

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/402072
推荐阅读
相关标签
  

闽ICP备14008679号