Git - Installing on Hostmonster - shared server

mkdir git
cd git
wget http://www.kernel.org/pub/software/scm/git/git-1.7.5.tar.gz
tar -xzf git-1.7.5.tar.gz
cd git-1.7.5/
./configure --prefix=$HOME/git
make SHELL="/bin/bash"
make SHELL="/bin/bash" install
 
cd
nano .bashrc
# add line to .bashrc
# export PATH=$HOME/git/bin/:$HOME/git/libexec/git-core/:$PATH
 
# to check your install and reload bash
source ~/.bashrc
git --version

Internal References

Article Type

General