1.配置账户

git config --global user.name "zzzhumengfan"     ->用户名,建议拼音或英文

git config --global user.email "[email protected]"     ->邮箱地址

2.生成秘钥 

ssh-****** -t rsa -C "[email protected]"         ->上面的邮箱地址

连续按3次enter,直到出现下面的截图

mac 配置GitLab 

 

 

 

 

 

 

 

查看.ssh文件夹 

1、2步骤后,就完成了账户创建、秘钥生成,.ssh文件夹下就多了id_rsa(私有秘钥)和id_rsa.pub(公有**)

mac 配置GitLab 

GitLab添加SSH Key:打开SSH Keys

Key中粘贴id_rsa.pub(公有**),然后Title,里面会自动生成邮箱,点击Add key完成添加


mac 配置GitLab
 

 

相关文章:

  • 2022-12-23
  • 2021-07-13
  • 2021-04-28
  • 2021-06-11
  • 2021-11-29
  • 2021-10-24
  • 2021-10-15
猜你喜欢
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2021-10-30
  • 2022-01-11
相关资源
相似解决方案