Skip to content

Instantly share code, notes, and snippets.

@partkyle
Forked from jcf/Download and install git from source
Last active December 19, 2015 00:39
Show Gist options
  • Save partkyle/5870004 to your computer and use it in GitHub Desktop.
Save partkyle/5870004 to your computer and use it in GitHub Desktop.
install git from source into $HOME
set -e
LOCAL=$HOME/local
mkdir -p $HOME/build
cd $HOME/build
VERSION='1.8.3.1'
wget http://www.kernel.org/pub/software/scm/git/git-$VERSION.tar.gz
tar xzvf git-$VERSION.tar.gz
cd git-$VERSION
make configure
./configure --prefix=$LOCAL --without-tcltk
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment