How to install git in Linux (debian/ubuntu)

~Editor

TL;DR

apt-get update && apt-get install git && git --veresion

First, update your apt-get repository

sudo apt-get update

This will fetch the latest version of all the supported software by the apt-get package manager

Then install the latest version of git

sudo apt-get install git

wait wile apt-get is installing the 'git' cli software

After the installation is complete you can check if the installation is successful by the command below

git --version

VIOLA. YOU HAVE SUCCESSFULLY INSTALLED GIT