How to install Git on Ubuntu/Linux.

Spread the Knowledge

To install Git on Linux/Ubuntu you have to Run the below commands

Step 1 :- First check that your packages are updated or not :

sudo apt update

Step 2 :- Run the below command to install Git :

sudo apt install git

Step 3 :- Verify the installation by typing the below command which will print the Git version :

git –version

OUTPUT

git version 2.17.1