Linux安装Git环境
1.新建下载目录 mkdir /data/soft/phpsoft/git2.下载git wget https://github.com/git/git/archive/v2.22.0.tar.gz
3.解压 tar v2.22.0.tar.gz
3.安装依赖 yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
4.进入目录cd git-2.22.0
5.编译 make prefix=/data/install/git all
6.安装 make prefix=/data/install/git install
7.修改环境变量 vim /etc/profile 增加PATH=$PATH:/data/install/git/bin
8.刷新配置 source /etc/profile
9.查看版本 git --version
以上是 Linux安装Git环境 的全部内容, 来源链接: utcz.com/z/510631.html