Maybe 发表于 2024-3-26 10:23:56

解决github推送错误 remote: Support for password authentication was remo...

推送github仓库代码,输入完账号密码出现:remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-s ... ing-with-https-urls for information on currently recommended modes of authentication.

是因为自从 21 年 8 月 13 后不再支持用户名密码的方式验证了,需要创建个人访问令牌(personal access token)。
解决办法如下:
在 GitHub 上生成令牌,应用于所需的仓库中1.点击 settings
2.点击右侧的 Developer settings
3.点击 Personal access tokens(个人访问令牌)
4.点击 Generate new token
5.设置 token 信息
6.根据所需过期时间,建议设置成永远,以免麻烦,建议所有选项都选上
7.点击 Generate token 生成令牌
8.得到生成的令牌
然后再次执行 pull push 操作

页: [1]
查看完整版本: 解决github推送错误 remote: Support for password authentication was remo...