Git is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows. As with most other distributed revision control systems, and unlike most client–server systems, every Git working directory is a full-fledged repository with complete history and full version-tracking capabilities, independent of network access or a central server.
Step 1: Install Prerequisites Packages (EPEL repository needed)
[root@server ~]# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker asciidoc xmlto docbook2x
Step 2: Download and extract Git source
[root@server ~]# cd /tmp/ && wget https://www.kernel.org/pub/software/scm/git/git-2.4.1.tar.gz
[root@server tmp]# tar -xvzf git-2.4.1.tar.gz
Step 3: Install Git repository
[root@server ~]# ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
[root@server ~]# cd git-2.4.1
[root@server git-2.4.1]# make prefix=/usr all doc info
[root@server git-2.4.1]# make prefix=/usr install install-doc install-html install-info
Verify that git is successfully installed on machine.
[root@server ~]# git --version
git version 2.4.1