How To Install and Configure Git on Ubuntu 18.04 | Hostingride

how to install git on ubuntu

What is Git?
Git is commonly used for source code management. Git is one of the most popular tools used as a distributed VCS (version control system).

How to Install Git on Ubuntu 18.04.
Open putty (terminal) type normally update command.

sudo apt-get update

We need to install Git package. 

sudo apt-get install git

Here may asked to confirm for installation simply Type Y (yes) and enter.
Now check Git install or not with below command.

git --version
git version 2.7.5

Now git is correctly installed.

How to Configure Git on Ubuntu.
Configure your name or domain name with below command.

git config --global "Your Name"
git config --global ""

You can also check the git config file with below command.

git config --list Your Name

That’s it! You have now successfully installed Git on your Ubuntu system.

also, check How to install and configure Git on centos 7

Blog type: 

Add new comment

Authored By

Sandeep Gurjar

Hy all, This is Sandeep Gurjar am the founder of I am a Redhat Certified Engineer (RHCE) / AWS Solutions Architect-Associate and working as an system administrator since 2016.

Follow us on

Facebook​  Twitter  LinkedIn  Google+