Thursday, October 25, 2012

Installing git man pages

Git installation by default does not include all the man pages.
So if you try to look for help on git commands like “git help commit”, you may see and error like this: “No manual entry for git-commit”.
It is strange to see a popular tool like git does not including man pages by default; however, following are the steps to download and install the man pages.

> Download man-pages
http://git-core.googlecode.com/files/git-manpages-[GIT_VERSION_NO].tar.gz >  git-manpages-[GIT_VERSION_NO].tar.gz 
> Untar the man-pages
tar xvj -C /usr/local/share/man -f git-manpages-[GIT_VERSION_NO].tar.gz
Done – Now you should be able to use all git manpages.