1.检查当前系统是否已经安装git,如已安装会看到已安装版本信息。git
rpm -qa gitcode
2.安装git服务。blog
yum install gitit
3.查看当前git安装版本。io
git --versionclass