登录失败,使用ctrl + c取消基本凭据提示 [英] Logon failed, use ctrl+c to cancel basic credential prompt

查看:71
本文介绍了登录失败,使用ctrl + c取消基本凭据提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近两天,我尝试使用cmd提示符将代码拉入/推送到GitHub存储库时遇到问题.我该如何解决这个问题?

登录失败,请使用ctrl + c取消基本凭据提示."https://github.com"的用户名:satyendrasingh8"https://satyendrasingh8@github.com"的密码:远程:无效的用户名或密码.致命:"https://github.com/satyendrasingh8/chatApp.git/"的身份验证失败

解决方案

@Fitz_Hoo是正确的!我只是想给出更详细的解释,以解决我的问题.实质上,GitHub最近不赞成使用其密码验证(您可以通过单击

现在,您无需添加用户名/电子邮件和密码,而是使用浏览器登录.下图是新界面.正如Fitz_hoo所述,您必须更新git才能看到新的更改!

如果您使用的是窗口,则只需在下面使用以下命令即可更新git:

  C:\>git update-git-for-windows 

I'm facing problems while trying to pull/push my code into GitHub repository using cmd prompt for the last 2 days. How can I resolve this issue?

Logon failed, use ctrl+c to cancel basic credential prompt. Username for 'https://github.com': satyendrasingh8 Password for 'https://satyendrasingh8@github.com': remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/satyendrasingh8/chatApp.git/'

解决方案

@Fitz_Hoo is right! I just wanted to give a more detail explanation that fix my issue. Essentially GitHub deprecated their password authentication recently (you can read more by clicking here)

Now instead of adding your username/email and password, you will login with your browser. The image below is the new interface. As Fitz_hoo mention, you must update your git to see the new changes!

If you are using window, you can simply use this command below to update your git:

C:\> git update-git-for-windows

这篇关于登录失败,使用ctrl + c取消基本凭据提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆