Install Git
On Ubuntu, Git packages are available via apt
:
From your shell, install Git using apt:
$ sudo apt update
$ sudo apt install git
Verify the installation was successful by typing git --version
:
$ git --version
git version 2.9.2
Configure your Git username and email using the following commands, replacing with your own name and email. These details will be associated with any commits that you create:
$ git config --global user.name "Nouman Umer"
$ git config --global user.email "[email protected]"