This solution worked for me:
- ssh into your server
- Create directory ‘src’ and cd into it:
- 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 |
curl -LO https://github.com/git/git/archive/v.2.3.0.tar.gz
Now enter the following commands:
./configure --prefix=/home/$USER --with-curl --with-expat |
./configure --prefix=/home/$USER --with-curl --with-expat
echo 'PATH=$PATH:$HOME/bin' >> $HOME/.bashrc |
echo 'PATH=$PATH:$HOME/bin' >> $HOME/.bashrc
you should now be able to run git version and be rewarded with ‘git version 2.3.0’.