Git - Installing on Hostmonster - shared server

This article is no longer relevant!
Hostmonster now includes git support.

Git is now available on Hostmonster without doing all these steps below. If it's not, call in to their support and have them enable it (and ssh access too, while you're at it) :)

Original article

The version of git I put here, 2.26.1, might be old by the time you read this. :) See https://mirrors.edge.kernel.org/pub/software/scm/git/ for the latest versions.

mkdir git
cd git
wget http://www.kernel.org/pub/software/scm/git/git-2.26.1.tar.gz
tar -xzf git-2.26.1.tar.gz
rm git-2.26.1.tar.gz
cd git-2.26.1/
./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

External References

Article Type

General