$ git push
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: Authentication failed for 'xxxxx'

解决办法

1.将本地id_rsa.pub 拷贝到 github 的 SSH keys 中
打开github,点击右上角头像,弹出列表,点击“Settings”,点击左侧栏目上的“SSH and GPG keys”,再点击“New SSH Key”,将本地~/.ssh/id_rsa.pub中的内容复制进去。

2.修改本地git的remote url
在代码仓库复制ssh地址,然后在本地执行:

git remote  set-url origin ssh地址

相关文章:

  • 2022-02-20
  • 2021-05-16
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-21
  • 2021-05-30
  • 2021-08-28
  • 2022-12-23
  • 2021-08-14
  • 2021-12-17
  • 2022-01-12
相关资源
相似解决方案