install git Linux

First, use the apt package management tools to update your local package index.

sudo apt update

With the update complete, you can install Git:

 sudo apt install git

Then you can determine that there are no errors by running the following command and conduct to receive current version.

git --version
You need to login to do this manipulation!