sudo apt-get
sudo apt-get install git
git --version
git config --user.name "wanghao"
git config --global user.name "wanghao"
<!--creat a new folder and go in-->
<!--creat a ssh public key-->
ssh-keygen -t rsa -C "1106425813@qq.com"
<!--copy this public key and paste them into the github-->
cd ~/.ssh
gedit id_rsa.pub
<!--then go to your github.com and copy-->
<!--ping git to test whether connect or not -->
ssh -T git@github.com
<!--if connect, then "Hi wangqinghe95! You've successfully authenticated, but GitHub does not provide shell access."-->