Git Version control systems allow you to keep track of your software at the source level. You can track changes, revert to previous stages, and branch to create alternate versions of files and directories.

Install Git with Apt
Before we start installing the Git with apt, please login as a non-root user in your Ubuntu 14.04 LTS.

Update your local package index by using Apt package management tools



  $  sudo apt-get update

Then install the Git Version Control to your Ubuntu 14.04 LTS

    $  sudo apt-get install git

This will download and install git in to your system. To see the installed git version, use the following command:

    $  git –version
git version 1.9.1

You will get the version details of Git installed on your system.

Configure the Git
To use git version control systems you need to add some details to git config file, so that the commit messages  generated for you will contain your correct information. You need to provide your name and email address because git embeds this information into each commit you do. To do so, you can use the git config command as follows:

    $  git config –global “Your Name”

   $  git config –global “”

You can see all of the configuration items that have been set by typing:

   $ git config –list

Now you have installed Git Version control systems and ready to use on your system.