73a51ae0398150597a1f4af27de97ebcb3a074f1
   1git-help(1)
   2===========
   3
   4NAME
   5----
   6git-help - display help information about git
   7
   8SYNOPSIS
   9--------
  10'git help' [-a|--all|-i|--info|-m|--man|-w|--web] [COMMAND]
  11
  12DESCRIPTION
  13-----------
  14
  15With no options and no COMMAND given, the synopsis of the 'git'
  16command and a list of the most commonly used git commands are printed
  17on the standard output.
  18
  19If the option '--all' or '-a' is given, then all available commands are
  20printed on the standard output.
  21
  22If a git command is named, a manual page for that command is brought
  23up. The 'man' program is used by default for this purpose, but this
  24can be overridden by other options or configuration variables.
  25
  26Note that 'git --help ...' is identical as 'git help ...' because the
  27former is internally converted into the latter.
  28
  29OPTIONS
  30-------
  31-a|--all::
  32        Prints all the available commands on the standard output. This
  33        option supersedes any other option.
  34
  35-i|--info::
  36        Display manual page for the command in the 'info' format. The
  37        'info' program will be used for that purpose.
  38
  39-m|--man::
  40        Display manual page for the command in the 'man' format. This
  41        option may be used to override a value set in the
  42        'help.format' configuration variable.
  43+
  44By default the 'man' program will be used to display the manual page,
  45but the 'man.viewer' configuration variable may be used to choose
  46another display program (see below).
  47
  48-w|--web::
  49        Display manual page for the command in the 'web' (HTML)
  50        format. A web browser will be used for that purpose.
  51+
  52The web browser can be specified using the configuration variable
  53'help.browser', or 'web.browser' if the former is not set. If none of
  54these config variables is set, the 'git-web--browse' helper script
  55(called by 'git-help') will pick a suitable default. See
  56linkgit:git-web--browse[1] for more information about this.
  57
  58CONFIGURATION VARIABLES
  59-----------------------
  60
  61If no command line option is passed, the 'help.format' configuration
  62variable will be checked. The following values are supported for this
  63variable; they make 'git-help' behave as their corresponding command
  64line option:
  65
  66* "man" corresponds to '-m|--man',
  67* "info" corresponds to '-i|--info',
  68* "web" or "html" correspond to '-w|--web'.
  69
  70The 'help.browser', 'web.browser' and 'browser.<tool>.path' will also
  71be checked if the 'web' format is chosen (either by command line
  72option or configuration variable). See '-w|--web' in the OPTIONS
  73section above and linkgit:git-web--browse[1].
  74
  75The 'man.viewer' config variable will be checked if the 'man' format
  76is chosen. Only the following values are currently supported:
  77
  78* "man": use the 'man' program as usual,
  79* "woman": use 'emacsclient' to launch the "woman" mode in emacs
  80(this only works starting with emacsclient versions 22),
  81* "konqueror": use a man KIO slave in konqueror.
  82
  83Note that all these configuration variables should probably be set
  84using the '--global' flag, for example like this:
  85
  86------------------------------------------------
  87$ git config --global help.format web
  88$ git config --global web.browser firefox
  89------------------------------------------------
  90
  91as they are probably more user specific than repository specific.
  92See linkgit:git-config[1] for more information about this.
  93
  94Author
  95------
  96Written by Junio C Hamano <gitster@pobox.com> and the git-list
  97<git@vger.kernel.org>.
  98
  99Documentation
 100-------------
 101Initial documentation was part of the linkgit:git[7] man page.
 102Christian Couder <chriscool@tuxfamily.org> extracted and rewrote it a
 103little. Maintenance is done by the git-list <git@vger.kernel.org>.
 104
 105GIT
 106---
 107Part of the linkgit:git[7] suite