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工具,只能够求助大家了
淡淡烟草味2017-04-25 09:05:17
Already have a solution
The reference solution is
Remember the password and username
Create a password for the command line
Main code
git config --global credential.helper store
Then all you need to do is when git push
Username for 'https://github.com': hainuo
Password for 'https://hainuo@github.com':
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. .
某草草2017-04-25 09:05:17
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