一、安装
使用yum进行安装
[root@localhost lib]# yum install git
验证是否安装完成
[root@localhost lib]# git version
git version 1.8.3.1
二、配置git
[root@localhost lib]# git config --global user.name "huangbaokang"
[root@localhost lib]# git config --global user.email "huangbaokang@abc.com"