最新消息:XAMPP默认安装之后是很不安全的,我们只需要点击左方菜单的 "安全"选项,按照向导操作即可完成安全设置。

centos7 git upgrade to 2.9.2

XAMPP下载 admin 603浏览 0评论

#!/usr/bin/env bash
yum -y install zlib-devel curl-devel openssl-devel perl cpio expat-devel gettext-devel openssl zlib autoconf tk perl-ExtUtils-MakeMaker

yum -y remove git

rm -rf /app/git/

mkdir -p /app/git

cd /app/git

wget https://github.com/git/git/archive/v2.9.2.tar.gz

tar -xzvf v2.9.2.tar.gz

cd git-2.9.2

autoconf
./configure prefix=/usr/local/git
make
make install

echo “export PATH=$PATH:/usr/local/git/bin” >> /etc/bashrc

source /etc/bashrc

git –version

转载请注明:XAMPP中文组官网 » centos7 git upgrade to 2.9.2

您必须 登录 才能发表评论!