git update on linux

C++
apt-get update
apt-get upgrade
apt-get install git

Source

Also in C++: