This is a continuation of my previous post about Git and GitHub
Installation of Git on Linux, CentOS 7 server is pretty simple. This will be required especially if you are installing Jenkins on a Linux host where Jenkins needs to use Git as the Source Repository.
The steps are as follows:
- yum groupinstall “Development Tools” -y
- yum install gcc autoconf curl-devel gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel -y
- wget https://www.kernel.org/pub/software/scm/git/git-2.16.2.tar.xz
- tar -xvf git-2.16.2.tar.xz
- cd git-2.16.2
- make configure
- ./configure –prefix=/usr/local
- make install
Check the installation by using the command “git –version”