sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
If you receive an error about add-apt-repository command not found you need to install software-properties-common, and then redo the above steps.
sudo apt-get install software-properties-common
Reference: