Important You will require SSH/Shell Access.

This will help you install the latest (Stable) version of Git at the time of this writing.

1. Open up ssh and login
2. Do the following commands

Because Hostmonster / Bluehost are shared server we need to specify where to have the Git binaries stored.

mkdir -m 755 git
cd git
wget http://kernel.org/pub/software/scm/git/git-1.7.1.1.tar.gz
gunzip git-1.7.1.1.tar.gz
tar -xf git-1.7.1.1.tar
cd git-1.7.1.1


make && make install

Replace {username} with your login name for Hostmonster / Bluehost. You can find your username in the cPanel on the left where it says username.

3. Lets remove the source now that git is compiled and installed.

cd ..
rm -R git-1.7.1.1 Type ‘yes’ to confirm delete
rm git-1.7.1.1.tar

4. Now we need to make the git command usable so do the following commands

cd ..
nano .bashrc

5. Now add the following line to the bottom of the file.

export PATH=/home/{username}/git/bin/:/home/{username}/git/lib/libexec/git-core/:$PATH

Replace {username} with your login name for Hostmonster / Bluehost. You can find your username in the cPanel on the left where it says username.

6. Save

ctrl+x confirm save by typing ‘Y’ then enter, then enter again to confirm the file.

7. Lets verify that everything is working. You will need to reload bash

source .bashrc

8. Now verify that git is installed and running

git —version

The following is optional if you want to run your own git repository

1. cd to your project directory (note the “.” on line 2)

git init
git add .