1. 安装Mac下的Git
git官网下载地址:https://git-scm.com/download
2. 安装好Git后,配置用户名和用户邮箱
git config --global user.name "git的名字"
git config --global user.email "git的邮箱"
3. 生成秘钥
ssh-keygen -t rsa -C "git的邮箱"
然后回车,输入密码,确认密码
cd ~/.ssh
cat id_rsa.pub将公钥复制出来
4. Github配置
Title可以谁便写,Key粘贴刚才复制的公钥即可。
5. 安装Sourcetree
在Git的官网:https://git-scm.com/download
这里的Atlassian可以使用谷歌邮箱登录
链接Github账号,即可。
参考博客:
http://www.cnblogs.com/wufangfang/p/6137689.html
http://blog.csdn.net/xiaohanluo/article/details/53214933