本文介绍了我如何让git在Windows中显示命令行帮助?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用的是msysgit 1.7.4。



默认在浏览器中打开html帮助。



我只想在控制台上显示文本帮助。



我已经看到了配置help.format(默认设置为html)。我试着把它设置为man或info,但它只是说:

 致命:没有信息浏览器处理请求

谢谢,
matt

解决方案

does not report:

现在,可能...



由于增加了中:



  MinGW-get install msys-man。 








正如入门指南 - 获得帮助 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 696 does report:

So right now, this isn't possible...

As jamiebarrow adds in the comments:

MinGW-get install msys-man.


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中显示命令行帮助?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 17:36
查看更多