git 报错 fatal: Authentication failed的解决

git提交代码的时候,报错

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 faile

大概意思是说对密码身份验证的支持于2021年8月13日取消,所以终端Password for 'https://XXX:后面不能写密码了,要改用用户的token,token的获取方法如下:

note随意填写,最后点击Regenerate Token 按钮即可

猜你喜欢

转载自blog.csdn.net/ForeverMyheart/article/details/131479110