赞
踩
tar -zxvf git-2.31.1.tar.gz -C /opt/program/
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker -y
指定安装到/usr/local/git此目录中
make prefix=/usr/local/git all
make prefix=/usr/local/git install
# GIT_HOME
export GIT_HOME=/usr/local/git
export GIT_PATH=${GIT_HOME}/bin
export PATH=${PATH}:${GIT_PATH}
刷新环境变量
source /etc/profile
git --version
git config --global user.name “gezq0714”
git config --global user.email “ge051799qi@163.com”
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。