Under the latest version of Linux Git
I. Description of the problem
When the source data source configuration jenkins found git found. So go linux system installed git, but found the installed version 1.18 is not the latest version of git.
Second, the problem is solved
2.1, using the yum command linux installation (can not install the latest version)
# 安装git
yum install -y git
Below, is installed git version 1.8.3 Git
2.2, download the latest version of the installation package
2.2.1 download the latest version of Git source package
Download Git
enter the page, move the mouse to the figure below the red box, then right-click to copy the download link
into the linux system using wget downloads
wget https://github.com/git/git/archive/v2.23.0.tar.gz
2.2.2 installation dependencies
yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
After the installation dependencies will be installed by default git. You need to manually delete git
yum remove git
2.2.3 decompression dependencies
tar -zxvf v2.23.0.tar.gz
2.2.4, the files into a folder pressurized
cd git-2.23.0/
2.2.5 compiler
make prefix=/usr/local/git all
2.2.6 installation
Git mounted to the / usr / local / git path
make prefix=/usr/local/git install
2.2.7, configure the environment variables
vim /etc/profile
Add the following configuration file in the bottom profile
export PATH=/usr/local/git/bin:$PATH
Source command execution, the current configuration profile entry into force immediately.
source /etc/profile
2.2.8 Test Git
git --version