问题描述
提交代码,输入了github的账号密码,提示如下,大概意思是说密码凭证从2021年8月31号就不能用了,需要使用个人令牌访问,需要把密码替换成token
Username for 'https://github.com': xxx@qq.com
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/xxxxxxxion/xxx.git/'
解决方法
1、生成自己的token
在github个人设置页面,找到setting,选择developer setting

2、选择Personal access token, 点击 Generate new token

3、填写token的note,选择过期时间,以及一些需要的操作
此处要把workflow也勾选上,否则下面git push会报错。

4、然后在对应的账号密码页面,输入对应的账号和token
网友评论