How To Install Git On Hostmonster

Wednesday, March 3, 2010

install...

wget http://kernel.org/pub/software/scm/git/git-1.7.0.1.tar.gz
tar zxvf git-1.7.0.1.tar.gz
cd git-1.7.0.1
./configure --prefix=$HOME/git
make && make install

you can remove the source, but I chose to move it into a source folder

cd ~/git
mv git-1.7.0.1 src

now add this line to your .bashrc file:

vim .bashrc
export PATH=$HOME/git/bin/:$HOME/git/lib/libexec/git-core/:$PATH

to check your install and reload bash:

source ~/.bashrc
git --version

This entry was tagged git, hostmonster and Linux

comments powered by Disqus

© 2009-2013 lxneng.com. All rights reserved. Powered by Pyramid

go to Top