Install GIT on Ubuntu 16.04 within 2 Steps [3 Minutes Tutorial]

Install GIT on Ubuntu 16.04 within 2 Steps [3 Minutes Tutorial]


One of the main thing in development is keeping backup of existing and running version of the software.

I know many of the developers never thought of using a version control system instead, they themselves keeping the backup of the file.


That is not the good way to organize yourself.

You should have a version controlling software where you can always keep track of your changes and if you have made any mistakes, then you can use this version control software to roll back to the previous version and fix the mistake or bug by comparing the code.

Sorry, for such a long sentence.

Here in this tutorial, we are going to see such one of the software for you to keep track and have control over your versions.

What is GIT?

GIT is a version control system widely used by many developers and companies.

Since a lot of development works are carried out based on Ubuntu operating system, we have written this article to benefit the software developers who are using the Ubuntu.


Most of our articles, requires you to setup a sudo non root user account to protect your server from unnecessary data loss.

Since many of you running ubuntu server from command prompt, there is a little chance for something to go wrong while installing some software.

here is the tutorial for you to follow to create sudo non root user.

Install Git on Ubuntu 16.04

There are two ways available for you to install GIT on ubuntu 16.04.

The first one is installing it from the Ubuntu repository.

This is the simple method and you will love Ubuntu for giving option for you to install most of the software with one command.

Here is the command for that.

Thats all. this command will download and install Git on your Ubuntu server.

The second method is installing Git from the source itself.

First, let us update the package index and then install the dependencies for git.

Next you have to get the download link. For that, go to this link.

Go to Branch master->then select tags -> select version

Then, click on clone or download and then copy download zip link.


Once you get that link, you have to download the zip file in ubuntu using wget command.

Then, unzip the file using unzip command.

After that, install the package using the below command.

Since, this is the latest version, now let us see how to setup Git.

Setup the Git

Here, we have to add our name and email address so that we can get the right message when each time you do commit.

For that, we will use Git config command.

Here are the two commands you need to execute inorder to add the information.

To see the changes we have made, look use the below command.

You will get the following output.

When you add this information, it will be stored in the configuration file. Incase, you want change the given information, just open the configuration file and directly edit it.

Here is the command for that.

The configuration file will be opened on nano editor.

If do not follow the above step, you will get the warning like below one.

These two are essential settings that you have to do.

Thats all, you have done installing and configuring Git on your Ubuntu server.


If you have any errors while execution, let me know them in command.

Dont forget to signup for my tutorials to receive notification for next tutorial when it goes live.

Stay tune with us to learn more about cloud servers.


Leave a Reply

Your email address will not be published. Required fields are marked *