top of page
index-1-1.jpg
Writer's pictureAurora Solutions

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 user.name "Rasheed"
git config --global user.email "rasheed@aurorasolutions.org"

You can see all of your settings with this command:

git config --list

That's all! Enjoy using Git.

107 views0 comments

Recent Posts

See All

Kommentarer


bottom of page