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