1.安装
$sudo apt-get install git
2.配置用户名密码
$git config --global user.name "wilson"
$git config –global user.email "13699120345@163.com"
3.创建上传用的公钥
ssh-keygen-C "13699120345@163.com" -t rsa
4.上传公钥到github测试连接
在github.com的界面中选择右上角的AccountSettings,然后选择SSHPublic Keys ,选择新加。
Title可以随便命名,Key的内容拷贝自~/.ssh/id_rsa.pub中的内容,完成后,可以再使用ssh-vgit@github.com 进行测试
Mac下安装github