本地git代码到github 报错

63 阅读1分钟

www.cnblogs.com/sober-orang…

1、背景:报错 remote: Support for password authentication was removed on August 13,2021. Please use a personal access token instead.

起因:自2021年8月13日起,github不再支持使用密码push的方式

2、解决方案:两种

  • 使用SSH
  • 使用Personal access token

使用SSH 1、打开终端 2、使用github账号邮箱生成一个ssh key ssh-keygen -t ed25519 -C "your@mail.com" -f "你想让github ssh key存放的路径"

ssh-keygen -l // 列出你当前所有添加到ssh-agent的ssh情况