I already know that to install Git without sudo root grants it’s a bit weird, but a time ago I faced it trying to get Git working on a Bluehost’s shared hosting.
Install Git without sudo root grants
Execute the next lines on the shell: it will download Git, unzip it, compile it and setup.
wget https://github.com/git/git/archive/v2.6.4.zip -O git.zip
unzip git.zip
cd git-*
make configure ./configure --prefix=/home/USER && make && make install
Please note, replace USER
with your username according to your hosting in the last line.
Leave a comment with your suggestions or doubts 🙂