Created
December 18, 2014 22:10
-
-
Save jazzychad/07c0c6da5709202e8106 to your computer and use it in GitHub Desktop.
git update commands, osx
This file contains 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 6092693E | |
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 | |
👍
I believe --recv-keys 6092693E
should really be --recv-keys 96AFE6CB
also, for those who are blocked on the typical hkp:// port, append suffix :80
to the address
Thanks!
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this.