Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
786 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://[email protected]': 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 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...