1.首先在官网下载 https://git-scm.com/download/mac
 
2.然后安装git(mac自带git)
 
3设置Git的user name和email:
 
$ git config --global user.name "xxxxx"
$ git config --global user.email "xxxxx@gmail.com"
4.生成SSH密钥过程:
 
1>输入命令: cd ~/.ssh
2>有上面文件夹则备份删除,我们创建新的密匙
$ ssh-keygen -t rsa -C “xxxxx@gmail.com”
 
最后得到了两个文件:id_rsa和id_rsa.pub
 
3.添加密钥到ssh:ssh-add id_rsa
 
4.在github上添加ssh公匙,“id_rsa.pub”里面的公钥。
 
mac攻略(一) -- git使用
 
5安装source tree客户端
 
 
 

相关文章:

  • 2021-12-08
  • 2021-07-17
  • 2021-09-16
  • 2021-08-27
  • 2021-11-20
  • 2021-09-04
  • 2021-10-25
  • 2021-08-08
猜你喜欢
  • 2021-10-13
  • 2022-12-23
  • 2021-10-29
  • 2021-12-10
  • 2021-09-24
  • 2022-12-23
  • 2021-05-22
相关资源
相似解决方案