** 注册 **
$ git config --global user.name "用户名"
$ git config --global user.email "邮箱"
** 生成密钥 **
ssh-keygen -t rsa -C "邮箱"
-- 连续3个回车---
最后得到了这个文件文件:id_rsa.pub进入复制下来
添加密钥到ssh-agent
git 相关命令连接
http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html