Git has released 1.9.4 version on May 30, 2014. Git is a free and open source distributed version control system . It is designed to handle a small to very large projects with speed and efficiency. To know more about Git 1.9.4 read Git release notes.
This article will guide you to install Git 1.9.4 on CentOS/RHEL 6 Systems using source code. To learn about Git, access Git console on your browser and know about its uses.
Step 1: Install Required Packages
Firstly we need to make sure that we have installed required packages on your system. Use following command to install required packages before compiling Git source.
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
Step 2: Download and Compile Git Source
Download git source code from kernel git or simply use following command to download Git 1.9.4.
# cd /usr/src # wget https://www.kernel.org/pub/software/scm/git/git-1.9.4.tar.gz # tar xzf git-1.9.4.tar.gz
After downloading and extracting Git source code, Use following command to compile source code.
# cd git-1.9.4 # make prefix=
/usr/local/gitall # make prefix= /usr/local/gitinstall # echo "export PATH=$PATH: /usr/local/git/bin" >> /etc/bashrc # source /etc/bashrc
Step 3. Check Git Version
One completion of above steps, you have successfully install Git in your system. Let use following command to check git version
# git --version git version 1.9.4