Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
780 views
in Technique[技术] by (71.8m points)

authentication - Logon failed, use ctrl+c to cancel basic credential prompt

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/'

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

@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)

enter image description 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!

enter image description here

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

C:> git update-git-for-windows

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...