我如何获得git手册条目? [英] How do I get git manual entries?

查看:120
本文介绍了我如何获得git手册条目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了Git源代码并将其安装在非标准路径中。所有Git选项都有一个 -h 选项,但列出的文档非常简洁,缺少很多选项。我想要完整的文档,但无法找到它。当我运行 git help log git log --help 时出现以下错误:

 没有手动输入git-log 

我尝试添加所有可以想象的路径到 PATH MANPATH ,但它不好,我仍然得到这些讨厌的错误。我怎样才能得到 git< option> --help 工作?

解决方案

Git的手册页是由于某种原因完全独立的下载从实际的源代码中,因此在从源代码编译和安装时不会被安装。

您可以在git-core的下载列表


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.

这篇关于我如何获得git手册条目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆