Download
[download address][1]
Install
1<!-- lang: shell --> 2cd ~/Downloads 3tar -xvf git-1.8.4.tar.gz 4cd git-1.8.4 5sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev curl libcurl4-openssl-dev 6./configure --prefix=/home/xxx/app/git 7make 8sudo make install
Set path
1<!-- lang: shell --> 2cd ~ 3sublime .profile 4# append the following content to .profile file 5export PATH="$PATH:$HOME/app/git/bin" 6# save 7source .profile
Test
1<!-- lang: shell --> 2git --version # git version 1.8.4
Some questions
/bin/sh: 1: msgfmt: not found # install 'gettext'
fatal: Unable to find remote helper for 'https' # install 'curl libcurl4-openssl-dev' [1]: https://www.kernel.org/pub/software/scm/git/git-1.8.4.tar.gz