最近在github上传代码的时候出现了:
/video_parser# git push -u origin main
Username for 'https://github.com': gtnyxxx
Password for 'https://gtny2010@github.com':
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
输入了自己的usrname和password,但是输出了上面的这种错误。
后来查询了一下,发现需要做以下操作:
1、进入setting
2、进入developer settings
3、进入personal access tokens->Tokens(classic)
4、创建token
5、填写
6、记住自己的tokens
7、重新来git push
成功了!
其它:
usr:gtny2010
pw:git8****
记录下我的tokent: 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