top of page

How To Install Git on Ubuntu 12.04 LTS?

This step by step guide will teach you how to install Git on Ubuntu 12.04

About Git

Git is a distributed version control system (DVCS) designed and developed by Linus Torvalds (yes same guy who made Linux) and it was released to the public in 2005. Every Git working directory is a full-fledged repository with complete history and full version tracking capabilities, not dependent on network access or a central server.

Step 1: Download & Install Git

We will use apt-get command to install Git which is very quick and dam easy process. Open command terminal (CTRL+ALT+T) and run following command:

sudo apt-get install git-core

Provide the password!

Once the downloading finished and installation completes you will have Git installed and its ready to use.

Just for the sake of confirmation run this command:

git --version

And it will print the git version on the console.

Step 2: Setup Git

After Git is installed you need to copy your username and email in the gitconfig file. This file is located at ~/.gitconfig.

Opening it following a fresh Git install would reveal a completely blank page:

sudo nano ~/.gitconfig

You can use the follow commands to add in the required information.

git config --global "Rasheed"
git config --global ""

You can see all of your settings with this command:

git config --list

That's all! Enjoy using Git.

106 views0 comments

Recent Posts

See All

Git: How to change most recent commit message?

You can edit commit message on Git in 3 ways.It's possible to change ONLY the most recent commit message simply by doing this: 1 - Git Amend Message: git commit --amend 2 - Git Push/Pushing Message: (


bottom of page