Git is a distributed revision control system developed by Linus Torvalds for Linux kernel development. I have heard a lot about git regarding its speed and flexible workflow and decided to install git on my shared host, just to get a feel of it.
The good news is that git is very easy to install, but before you start, you need ssh access to your shared host.
# Make new directory for git
$mkdir git
$cd git
# Download latest version of git from distribution website
$wget http://kernel.org/pub/software/scm/git/git-1.6.0.4.tar.gz
#Uncompress source
$gunzip git-1.6.0.4.tar.gz, tar -xf git-1.6.0.4.tar
#Configure and compile git
$cd git-1.6.0.4
$./configure –prefix=$HOME/git
$make && make install
# Update .bashrc file by adding following line and source it
export PATH=$HOME/git/bin/:$HOME/git/lib/libexec/git-core/:$PATH
$source ~/.bashrc
Test your installation
$git –version
if there is no error then you are good to go.
Thanks marlio3 for all the instructions