Windows命令提示符下的git help [英] git help in Windows command prompt

查看:93
本文介绍了Windows命令提示符下的git help的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每次运行Windows上的 git help 命令( msysgit 发行版)时都会生成Web浏览器。我尝试了 git help -m 报告没有手动输入... git help -i 表示信息:终端类型'msys'不够智能,无法运行信息。 在<$ c中也是如此在 Cygwin 下的$ c> bash 。

The git help command on Windows (msysgit distribution) spawns web browser each time I run it. I tried git help -m which reports "No manual entry for ..." and git help -i which says "info: Terminal type 'msys' is not smart enough to run Info." The same happens in bash under Cygwin.

有没有明智的照明方法?终端中的 cmd 重量帮助?

Is there any sensible way to get light-weight help in cmd terminal?

推荐答案

Git 2更新。 x(2017年6月,Git 2.13.1)

Update for Git 2.x (June 2017, Git 2.13.1)

您仍然没有人:

> git -c help.format=man help add
warning: failed to exec 'man': No such file or directory
fatal: no man viewer handled the request

git< verb>相同; --help

git< verb> -h 不打印手册页,仅打印简短用法部分(与man无关)

Same for git <verb> --help.
git <verb> -h does not print the man page, only the short usage section (nothing to do with man)

否,即使在 我该如何建议基于htlp txt文件的猫的替代方法是git在Windows中显示命令行帮助吗?

man。< tool> .cmd $ $ c> config 于2008年推出,允许设置自定义命令,但 man.exe 并未附带msys shell。

There man.<tool>.cmd config introduced in 2008, allows to set a custom command, but msys shell isn't shipped with man.exe.

这篇关于Windows命令提示符下的git help的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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