Quantcast
Channel: The Smithy
Viewing all articles
Browse latest Browse all 400

Install Git on a shared host

$
0
0

This solution worked for me:

  • ssh into your server
  • Create directory ‘src’ and cd into it:
cd
mkdir src
cd src
  • Download and unpack the latest version of git. You van find the latest releases here: https://github.com/git/git/releases
curl -LO https://github.com/git/git/archive/v.2.3.0.tar.gz
tar zxvf v.2.3.0.tar.gz
cd git-2.3.0
  • build a config file:
make configure

Now enter the following commands:

./configure --prefix=/home/$USER --with-curl --with-expat
make -i
make -i install
echo 'PATH=$PATH:$HOME/bin' >> $HOME/.bashrc
source $HOME/.bashrc

you should now be able to run git version and be rewarded with ‘git version 2.3.0′.


Viewing all articles
Browse latest Browse all 400

Trending Articles