how do i get git to show command-line help in windows?

前端 未结 3 1037
攒了一身酷
攒了一身酷 2021-02-04 01:36

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 sh

3条回答
  •  滥情空心
    2021-02-04 02:34

    Issue 187 issue 696 does report:

    The main problem is that we do ship neither man.exe nor the man pages.
    Otherwise, you could set help.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 has groff.


    As mentioned in "Getting Started - Getting Help", those three commands invokes the man page, but only in its HTML version:

    $ git help 
    $ git  --help
    $ man git-
    

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

提交回复
热议问题