hainuo@hainuo-ubuntu:/www/×××/.git$ git push
Username for 'https://github.com': hainuo
Password for 'https://hainuo@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/hainuo/xi.git/'
我开启了github两步验证后应该如何解决?
由于windows下开发,编码老是自动转换成ansi或者gbk 实在搞不懂所以将电脑格式化撞了ubuntu在ubuntu下面没有githubforwindows方便的gui工具,只能够求助大家了
Already have a solution
The reference solution is
Remember the password and username
Create a password for the command line
Main code
Then all you need to do is when git push
In the Password project here, you just need to paste the access token generated in the github backend
As for where the files are saved?
The file save location is
/home/你使用的账户/
Two files will be generated in this directory
.gitconfig
.gitconfig
.git-credentials
.git-credentials
After that, your operations in the Linux terminal will not be disturbed by the verification process. .
After github turns on the second verification, the password when submitting uses the Personal Access Token in the personal settings instead of the account password