linux - Git 手册页似乎不正确

标签 linux git suse manpage

我是 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/

相关文章:

linux - 在 Linux 上将 apache 设置为服务

linux - 通过 ssh 与集群的从属节点连接失败

linux - 为什么 ELF 部分之间有未使用的空白空间?

正则表达式获取除当前词典和父词典之外的点文件

C on LINUX - 多个子进程执行异常次数

git - 如何在不首先进行克隆的情况下查看远程 Git 存储库的最新提交?

git - 如何在循环中运行 svn update 以将提交导入到 git?

git - 如何列出 `git` 中特定版本的文件?

linux - 如何以编程方式(或通过 CLI)旋转 PDF?

linux - 如何使在 UBUNTU 上使用 cx_Freeze 构建的 PYQT4 应用程序在 Linux SUSE 上运行。