1.查看系统是否已经安装git
1git --version
2.CentOS7 yum 安装git
1yum install -y git
3.安装成功
4.卸载git
1yum remove git