How To Install Git
By Cade • Jun 17th, 2008 • Category: How ToThis tutorial has been tailored to and tested for Bluehost.com's shared servers, but it should work on pretty much any shared host that allows SSH access (your mileage may vary). If your host falls short, quit settling and try Bluehost.
GIT is a fast version control system that is gaining popularity. Since you can’t install via RPM as an unprivileged user, we will have to compile from source.
Download the source:
cd ~/tmp wget http://www.kernel.org/pub/software/scm/git/git-1.5.5.tar.gz
Unzip the package:
tar xvzf git-1.5.5.tar.gz
Build the package:
cd git-1.5.5 ./configure --prefix=$HOME/opt make make install
If ~/opt/bin isn’t currently part of your path, add it to your .bashrc file:
vi ~/.bashrc PATH=$PATH:~/opt/bin
Then reload your .bashrc file to reload your path:
source ~/.bashrc
You will need a dedicated IP address to clone remote branches on standard GIT ports.
Cade is busy attempting to rid the shared hosting world of technical questions without answers. Have a request? Send it to me.
All posts by Cade
thanks for putting this up. I’m about to start a project with a friend and I REALLY don’t want to pay for GitHub to keep it to ourselves.
Any good resources for getting started with Git?