1.sudo apt-get install git 安装git
2.git config --global user.name "my Name"
3. git config --global user.email "myemail@xxx.com"
4.git config --list 查看配置信息
5.ssh-keygen -C 'myemail@xxx.com' -t rsa 生成密钥
6.gedit ~/.ssh/id_rsa.pub 复制密钥
7.github 添加密钥
8.ssh -T git@github.com 出现Hi xxxxx! You've successfully authenticated, but GitHub does not provide shell access.安装成功