1)设置用户名和email

git config --global user.name "xxx"

git config --global user.email "xxx@qq.com"

2)生成ssh key

ssh-keygen -t rsa -C "xxx@qq.com"

直接三次回车就ok【直接3个回车无密码提交拉取代码】

3)查看公钥,

cat ~/.ssh/id_rsa.pub

4)在github个人账户配置key

 

linux 生成git ssh秘钥

 

相关文章:

  • 2021-05-01
  • 2022-12-23
  • 2021-11-19
  • 2021-10-21
  • 2022-01-16
  • 2021-04-27
  • 2021-07-09
  • 2021-05-18
猜你喜欢
  • 2021-08-25
  • 2021-06-17
  • 2021-12-03
  • 2021-04-12
  • 2022-12-23
  • 2022-01-13
  • 2021-08-15
相关资源
相似解决方案