git升级

git 从1.7.1 升级到 2.2.1
http://www.tuicool.com/articles/Y3eqIf

环境初始化
yum remove git yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel asciidoc yum install gcc perl-ExtUtils-MakeMaker

下载最近git文件
wget https://github.com/git/git/archive/v2.2.1.tar.gz tar zxvf v2.2.1.tar.gz cd git-2.2.1

安装
./configure --prefix=/usr/local make prefix=/usr/local all make prefix=/usr/local install

配置环境变量
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc source /etc/bashrc

你可能感兴趣的:(git升级)