0%

CentOS安装最新版git

1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

GIT_VERSION=2.19.1

yum groupinstall -y "Development Tools"
yum install -y libcurl-devel zlib-devel

curl -O https://mirrors.edge.kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz
tar xvf git-$GIT_VERSION.tar.gz
cd git-$GIT_VERSION
./configure && make && make install