- Download the latest version of the git source
curl -O http://git-core.googlecode.com/files/git-1.7.6.4.tar.gz
- unpack git source
tar -xzf git-1.7.6.4.tar.gz
- Compile the source
cd git-1.7.6.4 && make prefix=/usr all
- Add git directory to path
echo "PATH=$PATH:~/git-1.7.6.4" >> ~/.bash_profile