一:检查git是否安装
执行命令:git --version
二、在CentOS5的版本,由于yum源中没有git,所以需要预先安装一系列的依赖包。在CentOS6的yum源中已经有git的版本了,可以直接使用yum源进行安装
执行命令:yum -y install git
三、检查安装结果: