安装Git客户端git
sudo apt-get install gitgithub
2. 生成密钥对,这样项目能够push到GitHub上ssh
$ssh-keygen -t rsa -C "xxxx@xxx.com"spa
3, 将生成的xxx.pub文件拷贝到github上get