-
-
Save patio11/a451bccda67abf51f727 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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