Инсталляция GIT из исходников в Ubuntu

# apt-get install -y git
# git --version
# cd /tmp
# git clone --depth=1 https://github.com/git/git.git
# cd git/
# less RelNotes
Git 2.14 Release Notes


# apt-get install -y \
libcurl4-gnutls-dev \
libexpat1-dev \
gettext \
libz-dev \
libssl-dev \
build-essential


# make prefix=/opt/git/2.14 all
# make prefix=/opt/git/2.14 install


# /opt/git/2.14/bin/git --version
git version 2.13.1.516.g05ec6e1


# apt-get remove -y git


# su - <user_name>


# ln -s /opt/git/2.14 /opt/git/current


$ vi ~/.bashrc


#### GIT ##############################

    export GIT_HOME=/opt/git/current
    export PATH=$PATH:$GIT_HOME/bin

#### GIT ##############################


$ logout


$ git --version
git version 2.13.1.516.g05ec6e1