Abstract: make prefix=/usr/src/git installStep 2 – Download and Compile Git Source Download latest Git source code from Git google code or simply use following
Git has released 1.9.5 version on Dec 18, 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.5 read Git release notes. This article will guide you to install Git 1.9.5 on CentOS/RHEL 7/6, Fedora 27,26 Systems using the source code. To learn about Git, access Git console on your browser and know about its uses.
Use this tutorial for installing latest Git on your Redhat based systems.Step 1 – Install Required Packages
Before compiling Git from source code, make sure you have installed required packages on your system or Use the following command to install it.
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-develStep 2 – Download and Compile Git Source
Download latest Git source code from Git google code or simply use following command to download Git 1.9.5.
cd /usr/src wget https://www.kernel.org/pub/software/scm/git/git-1.9.5.tar.gz tar xzf git-1.9.5.tar.gz
After downloading and extracting Git source code, Use the following command to compile the source code.
cd git-1.9.5 make prefix=/usr/src/git all make prefix=/usr/src/git install echo "export PATH=$PATH:/usr/src/git/bin" >> /etc/bashrc source /etc/bashrcStep 3 – Check Git Version
Upon 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.5