Академический Документы
Профессиональный Документы
Культура Документы
com
Originally published on
LinuxTechLab.com
Git is one of the famous, open-source & distributed version controlling system, that is
used for tracking changes in files/code among multiple peoples/locations. Being a
distributed system allows every repository on every system to be a full fledged
repository in itself with complete history & version tracking capabilities.
It was created by Linus Torvalds for Linux kernel development but ever since then it has
been adopted by many big & small organizations alike for version controlling. Git is free
software & distributed under the terms of GNU General Public License.
In this tutorial, we will learn to install git Ubuntu 16.04 & CentOS 7.
Installation on CentOS 7
We can install git using 2 methods i.e. either using yum or installing from source. We will
start by using yum for git installation,
YUM method
Just like any other software, we can install git using the yum install command,
$ yum install git
Git package is available with default Centos repositories. Once the git has been installed,
we can check the installed version by executing,
$ git version
Once the packages have been installed, proceed further to compiling the git source
code,
$ make configure
$ ./configure prefix=/usr/local
$ make prefix=/usr/local install
Once the setup has been completed, we can check the git version using the same
command as above i.e.
$ git version
Apt-Get method
To install git using apt-get, run the following commands,
$ sudo apt-get update
$ sudo apt-get install git
If you think we have helped you or just want to support us, please consider these :-
Connect to us: Facebook | Twitter | Google Plus
LinuxTechLab.com