安装
sudo apt-get install git
配置
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"
ssh-keygen -t rsa -C "your_email@example.com" 一路回车 复制.ssh/id_rsa.pub中得sshkey到github SSH中ssh -T git@github.com
You may see this warning: The authenticity of host 'github.com (207.97.227.239)' can't be established. # RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. # Are you sure you want to continue connecting (yes/no)? 输入yes,出现成功提示参考:
https://help.github.com/articles/set-up-git/