3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.35.1.225.ge2ac9141e6
10 .TH "GIT\-HELP" "1" "02/17/2022" "Git 2\&.35\&.1\&.225\&.ge2ac91" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-help \- Display help information about Git
35 \fIgit help\fR [\-a|\-\-all [\-\-[no\-]verbose]]
36 [[\-i|\-\-info] [\-m|\-\-man] [\-w|\-\-web]] [<command>|<guide>]
37 \fIgit help\fR [\-g|\-\-guides]
38 \fIgit help\fR [\-c|\-\-config]
43 With no options and no \fI<command>\fR or \fI<guide>\fR given, the synopsis of the \fIgit\fR command and a list of the most commonly used Git commands are printed on the standard output\&.
45 If the option \fB\-\-all\fR or \fB\-a\fR is given, all available commands are printed on the standard output\&.
47 If the option \fB\-\-guides\fR or \fB\-g\fR is given, a list of the Git concept guides is also printed on the standard output\&.
49 If a command, or a guide, is given, a manual page for that command or guide is brought up\&. The \fIman\fR program is used by default for this purpose, but this can be overridden by other options or configuration variables\&.
51 If an alias is given, git shows the definition of the alias on standard output\&. To get the manual page for the aliased command, use \fBgit <command> \-\-help\fR\&.
53 Note that \fBgit \-\-help \&.\&.\&.\fR is identical to \fBgit help \&.\&.\&.\fR because the former is internally converted into the latter\&.
55 To display the \fBgit\fR(1) man page, use \fBgit help git\fR\&.
57 This page can be displayed with \fIgit help help\fR or \fBgit help \-\-help\fR
62 Prints all the available commands on the standard output\&. This option overrides any given command or guide name\&.
69 print description for all recognized commands\&. This is the default\&.
74 List all available configuration variables\&. This is a short summary of the list in
75 \fBgit-config\fR(1)\&.
80 Prints a list of the Git concept guides on the standard output\&.
85 Display manual page for the command in the
89 program will be used for that purpose\&.
94 Display manual page for the command in the
96 format\&. This option may be used to override a value set in the
98 configuration variable\&.
102 program will be used to display the manual page, but the
104 configuration variable may be used to choose other display programs (see below)\&.
109 Display manual page for the command in the
111 (HTML) format\&. A web browser will be used for that purpose\&.
113 The web browser can be specified using the configuration variable
114 \fBhelp\&.browser\fR, or
116 if the former is not set\&. If none of these config variables is set, the
117 \fIgit web\-\-browse\fR
118 helper script (called by
119 \fIgit help\fR) will pick a suitable default\&. See
120 \fBgit-web--browse\fR(1)
121 for more information about this\&.
123 .SH "CONFIGURATION VARIABLES"
126 If no command\-line option is passed, the \fBhelp\&.format\fR configuration variable will be checked\&. The following values are supported for this variable; they make \fIgit help\fR behave as their corresponding command\- line option:
148 "info" corresponds to
160 "web" or "html" correspond to
163 .SS "help\&.browser, web\&.browser and browser\&.<tool>\&.path"
165 The \fBhelp\&.browser\fR, \fBweb\&.browser\fR and \fBbrowser\&.<tool>\&.path\fR will also be checked if the \fIweb\fR format is chosen (either by command\-line option or configuration variable)\&. See \fI\-w|\-\-web\fR in the OPTIONS section above and \fBgit-web--browse\fR(1)\&.
168 The \fBman\&.viewer\fR configuration variable will be checked if the \fIman\fR format is chosen\&. The following values are currently supported:
193 to launch the "woman" mode in emacs (this only works starting with emacsclient versions 22),
206 to open the man page in a new konqueror tab (see
207 \fINote about konqueror\fR
211 Values for other tools can be used if there is a corresponding \fBman\&.<tool>\&.cmd\fR configuration entry (see below)\&.
213 Multiple values may be given to the \fBman\&.viewer\fR configuration variable\&. Their corresponding programs will be tried in the order listed in the configuration file\&.
215 For example, this configuration:
230 will try to use konqueror first\&. But this may fail (for example, if DISPLAY is not set) and in that case emacs\(aq woman mode will be tried\&.
232 If everything fails, or if no viewer is configured, the viewer specified in the \fBGIT_MAN_VIEWER\fR environment variable will be tried\&. If that fails too, the \fIman\fR program will be tried anyway\&.
233 .SS "man\&.<tool>\&.path"
235 You can explicitly provide a full path to your preferred man viewer by setting the configuration variable \fBman\&.<tool>\&.path\fR\&. For example, you can configure the absolute path to konqueror by setting \fIman\&.konqueror\&.path\fR\&. Otherwise, \fIgit help\fR assumes the tool is available in PATH\&.
236 .SS "man\&.<tool>\&.cmd"
238 When the man viewer, specified by the \fBman\&.viewer\fR configuration variables, is not among the supported ones, then the corresponding \fBman\&.<tool>\&.cmd\fR configuration variable will be looked up\&. If this variable exists then the specified tool will be treated as a custom command and a shell eval will be used to run the command with the man page passed as arguments\&.
239 .SS "Note about konqueror"
241 When \fIkonqueror\fR is specified in the \fBman\&.viewer\fR configuration variable, we launch \fIkfmclient\fR to try to open the man page on an already opened konqueror in a new tab if possible\&.
243 For consistency, we also try such a trick if \fIman\&.konqueror\&.path\fR is set to something like \fBA_PATH_TO/konqueror\fR\&. That means we will try to launch \fBA_PATH_TO/kfmclient\fR instead\&.
245 If you really want to use \fIkonqueror\fR, then you can use something like the following:
255 cmd = A_PATH_TO/konqueror
261 .SS "Note about git config \-\-global"
263 Note that all these configuration variables should probably be set using the \fB\-\-global\fR flag, for example like this:
269 $ git config \-\-global help\&.format web
270 $ git config \-\-global web\&.browser firefox
277 as they are probably more user specific than repository specific\&. See \fBgit-config\fR(1) for more information about this\&.
280 Part of the \fBgit\fR(1) suite