无脑简单 命令升级git Centos

yum remove git
yum install zlib (系统默认已经装上)

yum install zlib-devel 
># wget https://github.com/git/git/archive/v2.2.1.tar.gz
># tar zxvf v2.2.1.tar.gz
># cd git-2.2.
># make configure
># ./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv
># make all doc
># make install install-doc install-html
># echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
># source /etc/bashrc
># git --version
>git version 2.2.
上一篇:Thinkphp 3.2中文章详情页的上一篇 下一篇文章功能


下一篇:Tested work with China Digiprog 3 4.94 mileage programmer