sam keen's corner of the web

Installing Git Manpages on Snow Leopard

When Using Git do you get this frustration:

$ git help pull
No manual entry for git-pull

If so, there is an easy fix

First, note the git version you are using

$ git --version
git version 1.6.4.2

Then download the appropriate tarball from kernel.org

curl -O http://www.kernel.org/pub/software/scm/git/git-manpages-{YOUR VERSION}.tar.bz2

Then determine your manpath for /usr/local (here it is /usr/local/share/man, yours may be different)

$ cat /etc/manpaths
/usr/share/man
/usr/local/share/man

Lastly, untar the files into the man directory

sudo tar xjv -C /usr/local/share/man -f git-manpages-1.6.4.2.tar.bz2
Now you should get manpages when you issue something like git help merge

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>