我是 git 的新手,如果这是一个愚蠢的问题,请原谅。
我已经在 SLES Linux 上从源代码安装了 git 1.7.7.4,一切看起来都不错。我已将以下内容添加到 $MANPATH:
/usr/local/git-1.7.7.4/share/man
当我执行 man git
时,我看到了
Git(3) User Contributed Perl Documentation Git(3)
NAME
Git - Perl interface to the Git version control system
SYNOPSIS
...
这看起来不像是我在命令行中使用的 git 命令的手册页。或者是吗?显然,听起来像是 perl 的东西。这是一个 online version我看到的完整手册页。
如果这不是正确的手册页,我在哪里可以找到它们?如果需要,我可以提供我的 git 安装的目录列表。谢谢。
最佳答案
您可以使用 make man && make install-man
从源包构建手册页。默认情况下不构建手册页,请参阅 git 的 INSTALL
文件:
To build and install documentation suite, you need to have the asciidoc/xmlto toolchain. Because not many people are inclined to install the tools, the default build target ("make all") does not build them.
"make doc" builds documentation in man and html formats; there are also "make man", "make html" and "make info". Note that "make html" requires asciidoc, but not xmlto. "make man" (and thus make doc) requires both.
关于linux - Git 手册页似乎不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8244251/