install git debian

C++
sudo apt update
sudo apt install git
sudo apt-get install git-core$ git --version
Source

Also in C++: