-
Notifications
You must be signed in to change notification settings - Fork 101
Git installation guide
Joris Roovers edited this page May 8, 2017
·
1 revision
These instructions can be used to install a specific version of git on the Vagrant development box:
# Slight modified instructions from https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
# Dependencies to build git from source
sudo apt-get install -y dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
# Dependencies to build git documentation from source
# sudo apt-get install -y asciidoc xmlto docbook2x
export GIT_VERSION="1.7.0"
cd /tmp
wget "https://github.com/git/git/archive/v$GIT_VERSION.tar.gz"
tar -zxf "v$GIT_VERSION.tar.gz"
cd git-$GIT_VERSION
make configure
./configure --prefix=/usr
make all
#sudo make install install-doc install-html install-info
alias git="/tmp/git-$GIT_VERSION/bin-wrappers/git"