1、下载

For the latest stable version for your release of Debian/Ubuntu
apt-get install git

 

2、配置git的名称跟邮箱

git config --global user.name "dingchong"
git config --global user.email "1374448439@qq.com"