remote: Support for password authentication was removed on August 13, 2021.

往 GitHub 上推送项目时,报如下错误:

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.

fatal: Authentication failed for 'https://github.com/XXXXXXX/'

意思是:原先的密码凭证从2021年8月13日开始就不能用了,必须使用个人访问令牌(personal access token),就是把你的密码替换成token!

也就是说,你需要使用 token 来代替密码了。

token 在哪里生成呢?

在github个人设置页面,找到Setting ->选择开发者设置Developer setting -> 选择个人访问令牌Personal access tokens,然后选中生成令牌Generate new token -> 生成令牌Generate token

在上述位置根据提示选项,生成新的 token 之后,再次上传时,在 密码 位置输入上述 token 即可!

本章完!

博客搬家

var code = "51209154-6bee-40b1-b828-be24063cb5b6"

你可能感兴趣的:(github,git)