Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 869
Billy ONeal Avatar asked Jan 23 '15 03:01

Billy ONeal


2 Answers

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.

like image 97
Dawnkeeper Avatar answered Nov 15 '22 18:11

Dawnkeeper


In windows

git <command> -h

will write help to the terminal output

git <command> --help 

will pop up a browser window

like image 38
Lee Smith Avatar answered Nov 15 '22 20:11

Lee Smith