1) For the latest stable version for your release of Linux/Ubuntu
sudo apt-get install git
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
1) For the latest stable version for your release of Linux/Ubuntu
sudo apt-get install git