1. 输入命令:ssh-keygen -t rsa -C “xxxx@yyy.com” 设置邮箱

2. 三次回车,完成

3. 输入命令:cat ~/.ssh/id_rsa.pub,回车, 查看生成的公钥

4. 在git里添加公钥

 

配置用户名及邮箱

git config --global user.name "username"

git config --global user.email "email"

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2019-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-10-05
猜你喜欢
  • 2021-05-29
  • 2022-12-23
  • 2020-06-27
  • 2021-12-11
  • 2022-01-01
相关资源
相似解决方案