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?
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 .
在Ubuntu上,您可以使用以下命令安装手册页:
sudo apt-get install git-man
在这里获取manpage git://git.kernel.org/pub/scm/git/git-manpages.git然后复制到你的系统,比如/ usr / local / share / man /
Lately, if you get Git
from the git repository at https://github.com/git (what a mind meddling), you will also get the documentation. Then you just have to install it.
On Ubuntu, you need to have asciidoc
and xmlto
installed, then you can simply
make prefix=if-you-change-binary-prefix install-doc
You should then be able to use man pages.
try
man git log
I get the man info use above command.I also did not get man info use the command you used.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.