安装
yum install -y git
查看
# 版本
rpm -qa git
# git-1.8.3.1-20.el7.x86_64
# 路径
rpm -ql git | sed '/man/d' |sed '/doc/d' | sed '/share/d' |sed '/libexec/d'
#/etc/bash_completion.d
#/etc/bash_completion.d/git
#/usr/bin/git
#/usr/bin/git-receive-pack
#/usr/bin/git-shell
#/usr/bin/git-upload-archive
#/usr/bin/git-upload-pack
使用
# 下载文件
git clone http://**.git
# 创建库
git init
git add .
git commit -m 'update'
# 上传
git remote add origin http://**.git
git push origin master
卸载
yum remove git