Created on Feb. 4, 2013, 4:39 p.m. by Hevok & updated by Hevok on May 2, 2013, 5:07 p.m.

Git is a distributed version control system. It allows the non-linear development of Programming Projects and can handle large amounts of data effectively by storing it on the local server.


Git can be installed in two ways.

Install via Apt-Get

Installing Git with apt-get is quick and easy. The program installs on the virtual private server wit one command:

sudo apt-get install git

After it finishes downloading, Git will be installed and ready to use.

Install from Source

To obtain the most recent version of Git, install it from source.

Update apt-get to make sure that the most recent packages are downloaded:

sudo apt-get update

Prior to install Git itself, download all of the required dependencies:

sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev build-essential

Download the latest version of Git:


Untar the archive and change the directory to it:

tar -zxf git-
cd git-

For a global install, install it once as yourself and once as root, using the sudo prefix:

make prefix=/usr/local all
sudo make prefix=/usr/local install

Git can be updated in future via Git itself:

git clone git://


After Git is installed either from apt-get or from the source, it need to be configured with username and email in the gitconfig. This file can be be accessed at ~/.gitconfig

Opening right after Git installation whould reveal a bank file:

sudo nano ~/.gitconfig

Add the required information with the following commands:

git config --global "NAME"
git config --global ""

All settings can be seen with this command:

git config --list

Tags: programming, development, reversion, coding, version-control, system
Categories: Tutorial, News
Parent: Tutorials

Update entry (Admin) | See changes

Comment on This Data Unit