GitHub not upload fatal: Authentication failed for 'h

Transfer: https://www.cnblogs.com/Security-Darren/p/4106478.html

 

After taking two-factor authentication on GitHub, when git push will be asked to fill in the user name and password, the user name is the user name of the user on GitHub application, but the password is not an ordinary GitHub login password.

  Once adopted two-factor authentication, log on GitHub when both need to enter a user name and password, but also need to enter a verification code instantly, so you can provide double security for Git accounts. But git push but how also can not be pushed to the distal end of the repo, always prompt authentication error: "fatal: Authentication failed for ..."

  Check a lot of domestic solutions, only one mentioned in the comments a bit GitHub of two-factor authentication, but did not say specifically how to do.

  No way, still have to rely on Google, finally found the tips in StackOverflow, if you enable GitHub two-factor authentication, then you before push the code to be provided is a token instead of the password you normally log in, the token of there are ways to obtain detailed records on GitHub, the following is a link, if there is a Git user experience similar errors, hope this can help you.

https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line

Account is login account, password is generated by the above code.

 

 

 

 

 

 

 

 

 

 

Should simply select the repo can be uploaded. I chose three

 

 Then it will generate a password, be sure to remember the password down and store for later use

 

Guess you like

Origin www.cnblogs.com/smh2015/p/11444415.html