How does one disable Git's HTML help (on Windows)?

I installed Github for Windows which comes with the Git command line client, and whenever I forget a switch or something and want to use --help, instead of dumping to the console it’s launching a browser. Is there a way to ask Git to dump the help to the console (as it does in most Unixen by default) instead of launching a browser?

  • msysgit: Unicode font warning
  • error with git (-bash: git: command not found)
  • Start/Stop and Restart Jenkins service on Windows
  • Using git from Package Manager Console in Visual Studio
  • How do i get a colored diff for last changes in git on the console?
  • Format SVN diff as a side-by-side comparison
  • Bitbucket cannot clone repository “fatal: early EOF fatal: index-pack failed”
  • Best practices for using Git with Magento?
  • Git octopus merge with unrelated repositoies
  • Error on git patch using git am
  • How to update pull-requesting site after pull request has been merged?
  • Git merge - manual merge - forcing conflic having WHOLE old and new file version
  • 2 Solutions collect form web for “How does one disable Git's HTML help (on Windows)?”

    For Linux systems you could set this with git config --global help.format <web|man|info>. Unfortunately the man pages are not part of the Git for Windows bundle so only ‘web’ works.

    This is a frail workaround, but if you just want a quick usage summary, feed the git sub-command of your choice a deliberately bad option name. I tried “–halp”. For example:

    $ git stash --halp
    error: unknown option for 'stash save': --halp
           To provide a message, use git stash save -- '--halp'
    usage: git core\git-stash list [<options>]
       or: git core\git-stash show [<stash>]
       or: git core\git-stash drop [-q|--quiet] [<stash>]
       or: git core\git-stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
       or: git core\git-stash branch <branchname> [<stash>]
       or: git core\git-stash [save [--patch] [-k|--[no-]keep-index] [-q|--quiet]
                           [-u|--include-untracked] [-a|--all] [<message>]]
       or: git core\git-stash clear

    I can’t say for sure that “halp” will always be rejected, but it seems to get the job done. Hopefully it’ll never get interpreted as a usable parameter. This is probably better than random typing, for example, since you might randomly type in correct input.

    Git Baby is a git and github fan, let's start git clone.