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.38.1.220.g9388e93f00
10 .TH "GIT\-HELP" "1" "10/27/2022" "Git 2\&.38\&.1\&.220\&.g9388e9" "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] [\-\-[no\-]external\-commands] [\-\-[no\-]aliases]
36 \fIgit help\fR [[\-i|\-\-info] [\-m|\-\-man] [\-w|\-\-web]] [<command>|<doc>]
37 \fIgit help\fR [\-g|\-\-guides]
38 \fIgit help\fR [\-c|\-\-config]
39 \fIgit help\fR [\-\-user\-interfaces]
40 \fIgit help\fR [\-\-developer\-interfaces]
45 With no options and no \fI<command>\fR or \fI<doc>\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\&.
47 If the option \fB\-\-all\fR or \fB\-a\fR is given, all available commands are printed on the standard output\&.
49 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\&.
51 If a command or other documentation is given, the relevant manual page will be brought up\&. The \fIman\fR program is used by default for this purpose, but this can be overridden by other options or configuration variables\&.
53 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\&.
55 Note that \fBgit \-\-help \&.\&.\&.\fR is identical to \fBgit help \&.\&.\&.\fR because the former is internally converted into the latter\&.
57 To display the \fBgit\fR(1) man page, use \fBgit help git\fR\&.
59 This page can be displayed with \fIgit help help\fR or \fBgit help \-\-help\fR
64 Prints all the available commands on the standard output\&.
67 \-\-no\-external\-commands
70 \fB\-\-all\fR, exclude the listing of external "git\-*" commands found in the
77 \fB\-\-all\fR, exclude the listing of configured aliases\&.
84 print description for all recognized commands\&. This is the default\&.
89 List all available configuration variables\&. This is a short summary of the list in
90 \fBgit-config\fR(1)\&.
95 Prints a list of the Git concept guides on the standard output\&.
100 Prints a list of the repository, command and file interfaces documentation on the standard output\&.
102 In\-repository file interfaces such as
103 \fB\&.git/info/exclude\fR
104 are documented here (see
105 \fBgitrepository-layout\fR(5)), as well as in\-tree configuration such as
108 \fBgitmailmap\fR(5))\&.
110 This section of the documentation also covers general or widespread user\-interface conventions (e\&.g\&.
111 \fBgitcli\fR(7)), and pseudo\-configuration such as the file\-based
113 interface described in
117 \-\-developer\-interfaces
119 Print list of file formats, protocols and other developer interfaces documentation on the standard output\&.
124 Display manual page for the command in the
128 program will be used for that purpose\&.
133 Display manual page for the command in the
135 format\&. This option may be used to override a value set in the
137 configuration variable\&.
141 program will be used to display the manual page, but the
143 configuration variable may be used to choose other display programs (see below)\&.
148 Display manual page for the command in the
150 (HTML) format\&. A web browser will be used for that purpose\&.
152 The web browser can be specified using the configuration variable
153 \fBhelp\&.browser\fR, or
155 if the former is not set\&. If none of these config variables is set, the
156 \fIgit web\-\-browse\fR
157 helper script (called by
158 \fIgit help\fR) will pick a suitable default\&. See
159 \fBgit-web--browse\fR(1)
160 for more information about this\&.
162 .SH "CONFIGURATION VARIABLES"
165 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:
187 "info" corresponds to
199 "web" or "html" correspond to
202 .SS "help\&.browser, web\&.browser and browser\&.<tool>\&.path"
204 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)\&.
207 The \fBman\&.viewer\fR configuration variable will be checked if the \fIman\fR format is chosen\&. The following values are currently supported:
232 to launch the "woman" mode in emacs (this only works starting with emacsclient versions 22),
245 to open the man page in a new konqueror tab (see
246 \fINote about konqueror\fR
250 Values for other tools can be used if there is a corresponding \fBman\&.<tool>\&.cmd\fR configuration entry (see below)\&.
252 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\&.
254 For example, this configuration:
269 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\&.
271 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\&.
272 .SS "man\&.<tool>\&.path"
274 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\&.
275 .SS "man\&.<tool>\&.cmd"
277 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\&.
278 .SS "Note about konqueror"
280 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\&.
282 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\&.
284 If you really want to use \fIkonqueror\fR, then you can use something like the following:
294 cmd = A_PATH_TO/konqueror
300 .SS "Note about git config \-\-global"
302 Note that all these configuration variables should probably be set using the \fB\-\-global\fR flag, for example like this:
308 $ git config \-\-global help\&.format web
309 $ git config \-\-global web\&.browser firefox
316 as they are probably more user specific than repository specific\&. See \fBgit-config\fR(1) for more information about this\&.
319 Part of the \fBgit\fR(1) suite