Installing Git on Ubuntu can be as simple as this:
Method 1: The easiest and Ubuntu recommended way - using the Ubuntu package manager:
sudo apt-get install git-core
Done!
Well, it takes quite some time for the latest version of Git to reach the Ubuntu repos - as of now, the repo version is around 4 months older than the actual version of Git out there.
To install those, you need to Build/Compile/Install from the latest version of the source code.
Here is how you do that: