How To Install Git on Ubuntu 16.04/18.04/20.04 LTS


Git is a disseminated variant control framework for following changes in source code during programming advancement. It is intended for planning work among software engineers, however it very well may be utilized to follow changes in any arrangement of documents. Its objectives incorporate speed, information uprightness, and backing for circulated, non-straight work processes.

In this post, We will install Git on ubuntu 16.04 and 18.04

Add Git Repository

Step 1:- To add the git repository, Use the following command.

$ sudo add-apt-repository ppa:git-core/ppa

Install Git

Step 2:- To install git first, You need to update the ubuntu current repository and after that install the git packages by using the command.

$ sudo apt-get update 
$ sudo apt-get install git -y

After installation of Git, Lets check the Git version.

$ git --version

Sample output :-

aftab@techbeginner:~$ git --version
git version 2.7.4

How To Install Git on Ubuntu 16.04/18.04/20.04 LTS

Leave a Reply

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

Scroll to top