当前位置:   article > 正文

使用git提交代码到github时报错:Support for password authentication was removed on August 13, 2021._git 提交报错 support for password authentication was r

git 提交报错 support for password authentication was removed on august 13, 2

使用git提交代码时报错如下:

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: unable to access ‘https://github.com/xxx/xxx.git/’: The requested URL returned error: 403

在这里插入图片描述

如果以前是使用github账号密码提交代码的,从8月14号起将无法使用。
原因是github从8月14日起弃用了账密验证Git操作,将改用token或SSH密钥
需要改成token来代替密码
创建token的方法参照github的官方文档
https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

创建完成后切记保存好生成的token,
然后在git push的时候,使用生成的token来代替密码就ok了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/一键难忘520/article/detail/741990
推荐阅读
相关标签
  

闽ICP备14008679号