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


Reply With Quote

