git help in Windows command prompt

后端 未结 4 1513
失恋的感觉
失恋的感觉 2021-02-19 19:13

The git help command on Windows (msysgit distribution) spawns web browser each time I run it. I tried git help -m which reports \"No

4条回答
  •  -上瘾入骨i
    2021-02-19 19:42

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

    You still don't have man:

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

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


    No, even though an alternative, based on a 'cat' of the htlp txt files, is suggested in "how do I get git to show command-line help in windows?".

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

提交回复
热议问题