3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
7 .\" Source: Git 2.47.0.rc0
10 .TH "GIT\-HELP" "1" "2024-09-25" "Git 2\&.47\&.0\&.rc0" "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]
44 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\&.
46 If the option \fB\-\-all\fR or \fB\-a\fR is given, all available commands are printed on the standard output\&.
48 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\&.
50 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\&.
52 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\&.
54 Note that \fBgit \-\-help \&.\&.\&.\fR is identical to \fBgit help \&.\&.\&.\fR because the former is internally converted into the latter\&.
56 To display the \fBgit\fR(1) man page, use \fBgit help git\fR\&.
58 This page can be displayed with \fIgit help help\fR or \fBgit help \-\-help\fR\&.
63 Print all the available commands on the standard output\&.
66 \-\-no\-external\-commands
69 \fB\-\-all\fR, exclude the listing of external "git\-*" commands found in the
76 \fB\-\-all\fR, exclude the listing of configured aliases\&.
82 \fB\-\-all\fR, print description for all recognized commands\&. This is the default\&.
87 List all available configuration variables\&. This is a short summary of the list in
88 \fBgit-config\fR(1)\&.
93 Print a list of the Git concept guides on the standard output\&.
98 Print a list of the repository, command and file interfaces documentation on the standard output\&.
100 In\-repository file interfaces such as
101 \fB\&.git/info/exclude\fR
102 are documented here (see
103 \fBgitrepository-layout\fR(5)), as well as in\-tree configuration such as
106 \fBgitmailmap\fR(5))\&.
108 This section of the documentation also covers general or widespread user\-interface conventions (e\&.g\&.
109 \fBgitcli\fR(7)), and pseudo\-configuration such as the file\-based
111 interface described in
115 \-\-developer\-interfaces
117 Print a list of file formats, protocols and other developer interfaces documentation on the standard output\&.
122 Display manual page for the command in the
126 program will be used for that purpose\&.
131 Display manual page for the command in the
133 format\&. This option may be used to override a value set in the
135 configuration variable\&.
139 program will be used to display the manual page, but the
141 configuration variable may be used to choose other display programs (see below)\&.
146 Display manual page for the command in the
148 (HTML) format\&. A web browser will be used for that purpose\&.
150 The web browser can be specified using the configuration variable
151 \fBhelp\&.browser\fR, or
153 if the former is not set\&. If neither of these config variables is set, the
154 \fIgit web\-\-browse\fR
155 helper script (called by
156 \fIgit help\fR) will pick a suitable default\&. See
157 \fBgit-web--browse\fR(1)
158 for more information about this\&.
160 .SH "CONFIGURATION VARIABLES"
163 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:
185 "info" corresponds to
197 "web" or "html" correspond to
200 .SS "help\&.browser, web\&.browser, and browser\&.<tool>\&.path"
202 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)\&.
205 The \fBman\&.viewer\fR configuration variable will be checked if the \fIman\fR format is chosen\&. The following values are currently supported:
230 to launch the "woman" mode in emacs (this only works starting with emacsclient versions 22),
243 to open the man page in a new konqueror tab (see
244 \fINote about konqueror\fR
248 Values for other tools can be used if there is a corresponding \fBman\&.<tool>\&.cmd\fR configuration entry (see below)\&.
250 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\&.
252 For example, this configuration:
266 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\&.
268 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\&.
269 .SS "man\&.<tool>\&.path"
271 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\&.
272 .SS "man\&.<tool>\&.cmd"
274 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\&.
275 .SS "Note about konqueror"
277 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\&.
279 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\&.
281 If you really want to use \fIkonqueror\fR, then you can use something like the following:
291 cmd = A_PATH_TO/konqueror
296 .SS "Note about git config \-\-global"
298 Note that all these configuration variables should probably be set using the \fB\-\-global\fR flag, for example like this:
304 $ git config \-\-global help\&.format web
305 $ git config \-\-global web\&.browser firefox
311 as they are probably more user specific than repository specific\&. See \fBgit-config\fR(1) for more information about this\&.
314 Part of the \fBgit\fR(1) suite