Skip to content

Instantly share code, notes, and snippets.

@jazzychad
Created December 18, 2014 22:10
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jazzychad/07c0c6da5709202e8106 to your computer and use it in GitHub Desktop.
Save jazzychad/07c0c6da5709202e8106 to your computer and use it in GitHub Desktop.
git update commands, osx
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
@davidwparker
Copy link

Thanks for this.

@javamonn
Copy link

👍

@evandrix
Copy link

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

@rsfuller
Copy link

Thanks!

@davelab
Copy link

davelab commented Dec 19, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment