标签:version code util text zlib lin ash openssl tar
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc
yum install gcc perl-ExtUtils-MakeMaker
cd /usr/local/src/
tar -zxvf git-2.1.2.tar 加压下载好的tar包
cd git-2.1.2
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo "export PATH=$PATH:/usr/local/git/bin" >> ~/.bashrc
source ~/.bashrc
输入git --version查看
标签:version code util text zlib lin ash openssl tar
原文地址:https://www.cnblogs.com/traditional/p/11267244.html