配置用户名:git config --global user.name “username”

配置邮箱:git config --global user.email “xxx@email.com”

配置ssh免密登录:

1 使用命令生成密钥

ssh-keygen -t rsa -C “user.email”

连续三次回车

一般用户目录下会生成

id_srsa

id_rsa.pub

登录进入gitee,在设置页面找到SSH KEY将.pub文件的内容粘贴进去

使用ssh -T git@gitee.com测试是否成功即可

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2022-12-23
  • 2021-07-28
  • 2022-02-08
  • 2021-09-01
  • 2022-02-09
猜你喜欢
  • 2021-12-28
  • 2021-08-19
  • 2022-12-23
  • 2022-02-27
  • 2022-12-23
  • 2022-02-08
相关资源
相似解决方案