我如何让git在Windows中显示命令行帮助? [英] how do i get git to show command-line help in windows?
问题描述
我使用的是msysgit 1.7.4。
默认在浏览器中打开html帮助。
我只想在控制台上显示文本帮助。
我已经看到了配置help.format(默认设置为html)。我试着把它设置为man或info,但它只是说:
致命:没有信息浏览器处理请求
谢谢,
matt
Issue 187 issue 696 does not report:
主要问题在于我们既没有发送
man.exe
也没有发送手册页。
否则,您可以将help.format
设置为'man
'在/ etc / gitconfig
中。
现在,可能...
由于 jamiebarrow 增加了在评论中:
您也可以尝试自己安装人员
MinGW-get install msys-man。
man
也可以作为Windows二进制文件提供 :(通过 mingw FAQ )。该页面还有groff
。
正如入门指南 - 获得帮助 a>,这三个命令调用手册页,但仅限于HTML版本:
$ git help< verb>
$ git< verb> --help
$ man git-< verb>
git< verb> -h
不打印手册页,只显示简短的用法部分(与 man
无关)
How do i get git to show command-line help in windows?
I'm using msysgit 1.7.4.
It's defaulting to open the html help in the browser.
I just want to show the text help on the console.
I've seen the config help.format (which is set to html by default). I tried setting this to man or info, but it just says that:
fatal: no info viewer handled the request
Thanks, matt
Issue 187 issue 696 does report:
The main problem is that we do ship neither
man.exe
nor the man pages.
Otherwise, you could sethelp.format
to 'man
' in/etc/gitconfig
.
So right now, this isn't possible...
As jamiebarrow adds in the comments:
You could also try installing man yourself
MinGW-get install msys-man.
man
is also available as a windows binary: (found via the mingw FAQ). That page also hasgroff
.
As mentioned in "Getting Started - Getting Help", those three commands invokes the man page, but only in its HTML version:
$ git help <verb>
$ git <verb> --help
$ man git-<verb>
git <verb> -h
does not print the man page, only the short usage section (nothing to do with man
)
这篇关于我如何让git在Windows中显示命令行帮助?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!