Git is an open source version control system and this is how I installed Git v126.96.36.199 on my hostmonster account.
# you can remove the source, but I chose to move it into a source folder
$ mkdir git
$ cd git
$ wget http://kernel.org/pub/software/scm/git/git-188.8.131.52.tar.gz
$ gunzip git-184.108.40.206.tar.gz
$ tar -xf git-220.127.116.11.tar
$ cd git-18.104.22.168/
$ ./configure --prefix=$HOME/git
$ make && make install
# now add this line to your .bashrc file:
$ cd ~/git
$ mv git-22.214.171.124/ src/
# to check your install and reload bash:
# to get started move to your project directory and type: (note the "." on line 3)
$ source ~/.bashrc
$ git --version
That should get you started. There are lots of tutorials out there to get you on your way.
$ git init
# Initialized empty Git repository in /home/mysite/rails/bpc/.git/
$ git add .