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.44.0.rc2
10 .TH "GIT\-HELP" "1" "2024\-02\-19" "Git 2\&.44\&.0\&.rc2" "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 Print 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\&.
83 \fB\-\-all\fR, print description for all recognized commands\&. This is the default\&.
88 List all available configuration variables\&. This is a short summary of the list in
89 \fBgit-config\fR(1)\&.
94 Print a list of the Git concept guides on the standard output\&.
99 Print a list of the repository, command and file interfaces documentation on the standard output\&.
101 In\-repository file interfaces such as
102 \fB\&.git/info/exclude\fR
103 are documented here (see
104 \fBgitrepository-layout\fR(5)), as well as in\-tree configuration such as
107 \fBgitmailmap\fR(5))\&.
109 This section of the documentation also covers general or widespread user\-interface conventions (e\&.g\&.
110 \fBgitcli\fR(7)), and pseudo\-configuration such as the file\-based
112 interface described in
116 \-\-developer\-interfaces
118 Print a list of file formats, protocols and other developer interfaces documentation on the standard output\&.
123 Display manual page for the command in the
127 program will be used for that purpose\&.
132 Display manual page for the command in the
134 format\&. This option may be used to override a value set in the
136 configuration variable\&.
140 program will be used to display the manual page, but the
142 configuration variable may be used to choose other display programs (see below)\&.
147 Display manual page for the command in the
149 (HTML) format\&. A web browser will be used for that purpose\&.
151 The web browser can be specified using the configuration variable
152 \fBhelp\&.browser\fR, or
154 if the former is not set\&. If neither of these config variables is set, the
155 \fIgit web\-\-browse\fR
156 helper script (called by
157 \fIgit help\fR) will pick a suitable default\&. See
158 \fBgit-web--browse\fR(1)
159 for more information about this\&.
161 .SH "CONFIGURATION VARIABLES"
164 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:
186 "info" corresponds to
198 "web" or "html" correspond to
201 .SS "help\&.browser, web\&.browser, and browser\&.<tool>\&.path"
203 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)\&.
206 The \fBman\&.viewer\fR configuration variable will be checked if the \fIman\fR format is chosen\&. The following values are currently supported:
231 to launch the "woman" mode in emacs (this only works starting with emacsclient versions 22),
244 to open the man page in a new konqueror tab (see
245 \fINote about konqueror\fR
249 Values for other tools can be used if there is a corresponding \fBman\&.<tool>\&.cmd\fR configuration entry (see below)\&.
251 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\&.
253 For example, this configuration:
268 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\&.
270 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\&.
271 .SS "man\&.<tool>\&.path"
273 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\&.
274 .SS "man\&.<tool>\&.cmd"
276 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\&.
277 .SS "Note about konqueror"
279 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\&.
281 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\&.
283 If you really want to use \fIkonqueror\fR, then you can use something like the following:
293 cmd = A_PATH_TO/konqueror
299 .SS "Note about git config \-\-global"
301 Note that all these configuration variables should probably be set using the \fB\-\-global\fR flag, for example like this:
307 $ git config \-\-global help\&.format web
308 $ git config \-\-global web\&.browser firefox
315 as they are probably more user specific than repository specific\&. See \fBgit-config\fR(1) for more information about this\&.
318 Part of the \fBgit\fR(1) suite