Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get git manual entries?

Tags:

git

I downloaded Git source and installed it in a non-standard path. All the Git options have a -h option but the documentation listed there is very terse and many options are missing. I'd like the full documentation but am unable to find it. When I run git help log or git log --help I get the following error:

No manual entry for git-log

I've tried adding every path imaginable to PATH and MANPATH but it does no good, I still get these pesky errors. How can I get git <option> --help to work?

like image 538
dromodel Avatar asked Mar 12 '12 20:03

dromodel


2 Answers

Git's manpages are (for some reason) a completely separate download from the actual source code, and are thus not installed when compiling and installing from source.

You can find the manpages for each release in git-core's downloads list.

like image 88
Andrew Marshall Avatar answered Sep 17 '22 22:09

Andrew Marshall


On Ubuntu, you can install manual pages with the following command:

sudo apt-get install git-man
like image 42
Satish Avatar answered Sep 20 '22 22:09

Satish