johnreilly

www.flickr.com
john.reilly's items Go to john.reilly's photostream

installing git man pages

In a previous post, I was confused on how to install the latest git man pages after updating my git installation.  Turns out to be a single command! 

$ git archive origin/man | sudo tar -x -C /usr/local/share/man

Pretty awesome. The git maintainers made this very easy, as they’ve got a ‘man’ branch that contains the latest auto-generated man pages. A simple copy-through-tar technique gets it all installed.

This makes a couple assumptions:

  1. Your remote is named “origin” (which it will be, assuming you did a default clone).
  2. You want to install whatever docs are at the HEAD of origin/man (double check the commit messages to make sure you’re getting the right set of auto-generated docs).
  3. Your man pages live in /usr/local/share/man (Mine were there, as my first install followed the directions in Tim Dysinger’s Installing GIT on Mac OS X 10.5 Leopard article).  You can alter the output path as you need.
Hot times.  I’m now sportin’ git v1.5.6.2, plus the associated docs.
Comments (View)
blog comments powered by Disqus