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:
- Your remote is named “origin” (which it will be, assuming you did a default clone).
- 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).
- 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.