Categories
- Christianity (7)
- And Then Some (4)
- Creation (1)
- Outreach (1)
- The Church (3)
- Computing (21)
- Apple (2)
- Blogging (4)
- WordPress (3)
- Mac OS X (6)
- Programming (5)
- Text Editing (3)
- The Web (6)
- Social Media (1)
- Typography (4)
- Miscellaneous (5)
- Personal (5)
- Christianity (7)
Archives
Installing the Git man pages locally
(NOTE: The following applies to git under Mac OS X 10.6.2 (Snow Leopard). I can’t make any guarantees for other versions, but you still may find the article helpful.)
So, today I spent an insane amount of time trying to get my git install completely up-to-date, which meant installing the documentation locally on my machine. Sounds fairly straightforward, but unfortunately it was not.
To give you some context, this is the how-to article I was following, from GitHub. Git installed with no problems at all, but I ran into problems when building either of the following
maketargets:At this stage, make would freeze whenever it reached an
xmltocommand (xmltois a dependency for building the git documentation, I installed it with MacPorts). This is where it got stuck for me:Blinking cursor. No action. Bad.
So I found this really helpful post about
xmltoissues, but it did not help me. From the post:My
xmlto_directory/format/docbook/manfile contained this at line 11So
cp -awasn’t my problem.I ended up just downloading the pre-built man pages. You can find them here (just navigate to the version of git you’re using). Once I had the man pages, I followed these steps:
man1,man5andman7directories to/usr/local/manman.conffile (located at/etc/man.conf) to include the path/usr/local/manMANPATHMANPATH /usr/local/manif it doesn’t already existI could now access all of the git man pages. Yay! (*cough* 12:30 AM *cough*) You can test it with
man gitorman git-log, etc.