Skip to content

Instantly share code, notes, and snippets.

@patio11
Forked from jazzychad/gist:07c0c6da5709202e8106
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patio11/a451bccda67abf51f727 to your computer and use it in GitHub Desktop.
Save patio11/a451bccda67abf51f727 to your computer and use it in GitHub Desktop.
cd /tmp
curl -o git-2.2.1.tar.gz "https://www.kernel.org/pub/software/scm/git/git-2.2.1.tar.gz"
curl -o git-2.2.1.tar.sign "https://www.kernel.org/pub/software/scm/git/git-2.2.1.tar.sign"
# if you want to verify the tar signature
gpg --keyserver hkp://keys.gnupg.net --recv-keys 96AFE6CB
gunzip git-2.2.1.tar.gz
gpg --verify git-2.2.1.tar.sign
# look for "Good signature"
# you may get "WARNING: This key is not certified with a trusted signature!" - this is ok
tar xfv git-2.2.1.tar
# if you skipped gpg verification
tar zxvf git-2.2.1.tar.gz
cd git-2.2.1
./configure
make
sudo make install
# this should install git at /usr/local/bin/git
# if your `which git` is different, you might have to re-soft-link this path to the new installation
# in my case, i had to re-soft-link /usr/bin/git
sudo rm /usr/bin/git
sudo ln -s /usr/local/bin/git /usr/bin/git
git --version
# > git version 2.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment