赞
踩
yum -y install git
git --version
查看git 版本:Index of /pub/software/scm/git/
下载git: wget https://Github.com/Git/Git/archive/v2.9.5.tar.gz
#进入安装目录
cd /usr/local
#下载git
wget https://Github.com/Git/Git/archive/v2.9.5.tar.gz
#解压压缩包
tar -zxvf v2.9.5.tar.gz
#更改名称
mv git-2.9.5 git
#进入git目录
cd git
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
make && install
vi /etc/profile
export PATH=$PATH:/usr/local/git/bin
( 输入 :wq! 保存修改)
source /etc/profile
git --version
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。