1) Git is an open source version control system and this is how I installed Git v1.7.4.2 on my hostmonster account.
$ mkdir git
$ cd git
$ wget http://kernel.org/pub/software/scm/git/git-1.7.4.2.tar.gz
$ gunzip git-1.7.4.2.tar.gz
$ tar -xf git-1.7.4.2.tar
$ cd git-1.7.4.2/
$ ./configure --prefix=$HOME/git
$ make && make install
(or try this:
$make SHELL="/bin/bash"
$make SHELL="/bin/bash" install )
2) You can remove the source, but I chose to move it into a source folder
$ cd ~/git
$ mv git-1.7.4.2/ src/
3) Now add this line to your .bashrc file:
export PATH=$HOME/git/bin/:$HOME/git/lib/libexec/git-core/:$PATH
4) to check your install and reload bash:
$ source ~/.bashrc
$ git --version
5) to get started move to your project directory and type: (note the "." on line 3)
$ git init
# Initialized empty Git repository in /home/YourAppName/.git/
$ git add .
from http://hostmonsterforum.com/showthread.php?4589-HOWTO-install-Git-on-Hostmonster
No comments:
Post a Comment