Getting Git man pages on OS X

For some reason the OS X install of Git doesn’t include the manpages. Here is how I installed them.

First off, find the appropriate manpath.

[email protected]:~ %> cat /etc/manpaths

/usr/local/share/man looks good…

[email protected]:~ %> VER=`git --version | awk '{print $3}'`
[email protected]emine:~ %> curl -O$VER.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  242k  100  242k    0     0  92051      0  0:00:02  0:00:02 --:--:--   99k
[email protected]:~ %> sudo tar xjv -C /usr/local/share/man -f git-manpages-$VER.tar.bz2
x ./
x ./man1/
x ./man1/git-add.1
x ./man7/gitworkflows.7
[email protected]:~ %> rm git-manpages-$VER.tar.bz2
[email protected]:~ %>

“man git-add” should now work fine.

Gregory Armer avatar
About Gregory Armer
Sometimes I just want to give it all up and become a handsome billionaire.
comments powered by Disqus