Submit the code to github sorry remote: Invalid username or password. fatal: Authentication failed for

Today, git push reported an error to the github warehouse, prompting you to enter the user password, and the following prompt appeared. At first I thought that the password was wrong, and it was ok to log in to the github webpage directly.

remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/xxx/xxx/'

I also read it online and found that the original password entered was not a login password but a personal access token. I can’t see the previously created personal access token, regenerate it, click on the avatar in the upper right corner, select Settings ->Developer settings->Personal access tokens, click Generate new token, check the line rep, and click Generate token, A new page will pop up, record the new token, push or pull again, and enter the new token. Basically it is OK.

 

 

 

Guess you like

Origin blog.csdn.net/samz5906/article/details/104600119
Recommended