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的获取方法如下:

git 报错 fatal: Authentication failed的解决_第1张图片

 

git 报错 fatal: Authentication failed的解决_第2张图片

 

git 报错 fatal: Authentication failed的解决_第3张图片

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

git 报错 fatal: Authentication failed的解决_第4张图片

 

 

 

你可能感兴趣的:(git)