1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
6 <meta name=
"generator" content=
"AsciiDoc 8.4.5" />
7 <title>git-help(
1)
</title>
8 <style type=
"text/css">
10 p
, li
, dt
, dd
, div
, pre
, h1
, h2
, h3
, h4
, h5
, h6
{
12 border: 1px solid red;
17 margin: 1em 5% 1em 5%;
22 text-decoration: underline
;
42 h1
, h2
, h3
, h4
, h5
, h6
{
44 font-family: sans-serif
;
51 border-bottom: 2px solid silver
;
69 border: 1px solid silver
;
88 font-family: sans-serif
;
94 span#revnumber
, span#revdate
, span#revremark
{
95 font-family: sans-serif
;
99 font-family: sans-serif
;
101 border-top: 2px solid silver
;
107 padding-bottom: 0.5em;
111 padding-bottom: 0.5em;
116 margin-bottom: 1.5em;
118 div
.tableblock
, div
.imageblock
, div
.exampleblock
, div
.verseblock
,
119 div
.quoteblock
, div
.literalblock
, div
.listingblock
, div
.sidebarblock
,
120 div
.admonitionblock
{
122 margin-bottom: 1.5em;
124 div
.admonitionblock
{
126 margin-bottom: 2.5em;
129 div
.content
{ /* Block element content. */
133 /* Block element titles. */
134 div
.title
, caption
.title
{
136 font-family: sans-serif
;
140 margin-bottom: 0.5em;
146 td div
.title:first-child
{
149 div
.content div
.title:first-child
{
152 div
.content
+ div
.title
{
156 div
.sidebarblock
> div
.content
{
158 border: 1px solid silver
;
162 div
.listingblock
> div
.content
{
163 border: 1px solid silver
;
172 div
.quoteblock
> div
.attribution
{
181 div
.verseblock
> div
.content
{
184 div
.verseblock
> div
.attribution
{
188 /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
189 div
.verseblock
+ div
.attribution
{
193 div
.admonitionblock
.icon
{
197 text-decoration: underline
;
199 padding-right: 0.5em;
201 div
.admonitionblock td
.content
{
203 border-left: 2px solid silver
;
206 div
.exampleblock
> div
.content
{
207 border-left: 2px solid silver
;
211 div
.imageblock div
.content
{ padding-left: 0; }
212 span
.image img
{ border-style: none
; }
213 a
.image:visited
{ color: white
; }
217 margin-bottom: 0.8em;
230 list-style-position: outside
;
233 list-style-type: decimal
;
236 list-style-type: lower-alpha
;
239 list-style-type: upper-alpha
;
242 list-style-type: lower-roman
;
245 list-style-type: upper-roman
;
248 div
.compact ul
, div
.compact ol
,
249 div
.compact p
, div
.compact p
,
250 div
.compact div
, div
.compact div
{
252 margin-bottom: 0.1em;
255 div
.tableblock
> table
{
256 border: 3px solid
#527bbd;
259 font-family: sans-serif
;
271 /* Because the table frame attribute is overriden by CSS in most browsers. */
272 div
.tableblock
> table
[frame
="void"] {
275 div
.tableblock
> table
[frame
="hsides"] {
276 border-left-style: none
;
277 border-right-style: none
;
279 div
.tableblock
> table
[frame
="vsides"] {
280 border-top-style: none
;
281 border-bottom-style: none
;
287 margin-bottom: 0.8em;
290 padding-bottom: 15px;
292 dt
.hdlist1
.strong
, td
.hdlist1
.strong
{
298 padding-right: 0.8em;
304 div
.hdlist
.compact tr
{
314 div#footer-badges
{ display: none
; }
319 font-family: sans-serif
;
323 margin-bottom: 0.1em;
326 div
.toclevel1
, div
.toclevel2
, div
.toclevel3
, div
.toclevel4
{
342 /* Overrides for manpage documents */
345 padding-bottom: 0.5em;
346 border-top: 2px solid silver
;
347 border-bottom: 2px solid silver
;
357 div#toc
{ display: none
; }
360 /* Workarounds for IE6's broken and incomplete CSS2. */
362 div
.sidebar-content
{
364 border: 1px solid silver
;
367 div
.sidebar-title
, div
.image-title
{
369 font-family: sans-serif
;
372 margin-bottom: 0.5em;
375 div
.listingblock div
.content
{
376 border: 1px solid silver
;
381 div
.quoteblock-attribution
{
386 div
.verseblock-content
{
389 div
.verseblock-attribution
{
394 div
.exampleblock-content
{
395 border-left: 2px solid silver
;
399 /* IE6 sets dynamically generated links as visited. */
400 div#toc
a:visited
{ color: blue
; }
406 git-help(
1) Manual Page
409 <div class=
"sectionbody">
411 display help information about git
415 <h2 id=
"_synopsis">SYNOPSIS
</h2>
416 <div class=
"sectionbody">
417 <div class=
"verseblock">
418 <div class=
"verseblock-content"><em>git help
</em> [-a|--all|-i|--info|-m|--man|-w|--web] [COMMAND]
</div>
419 <div class=
"verseblock-attribution">
422 <h2 id=
"_description">DESCRIPTION
</h2>
423 <div class=
"sectionbody">
424 <div class=
"paragraph"><p>With no options and no COMMAND given, the synopsis of the
<em>git
</em>
425 command and a list of the most commonly used git commands are printed
426 on the standard output.
</p></div>
427 <div class=
"paragraph"><p>If the option
<em>--all
</em> or
<em>-a
</em> is given, then all available commands are
428 printed on the standard output.
</p></div>
429 <div class=
"paragraph"><p>If a git command is named, a manual page for that command is brought
430 up. The
<em>man
</em> program is used by default for this purpose, but this
431 can be overridden by other options or configuration variables.
</p></div>
432 <div class=
"paragraph"><p>Note that
<tt>git --help
…</tt> is identical to
<tt>git help
…</tt> because the
433 former is internally converted into the latter.
</p></div>
435 <h2 id=
"_options">OPTIONS
</h2>
436 <div class=
"sectionbody">
437 <div class=
"dlist"><dl>
446 Prints all the available commands on the standard output. This
447 option supersedes any other option.
458 Display manual page for the command in the
<em>info
</em> format. The
459 <em>info
</em> program will be used for that purpose.
470 Display manual page for the command in the
<em>man
</em> format. This
471 option may be used to override a value set in the
472 <em>help.format
</em> configuration variable.
474 <div class=
"paragraph"><p>By default the
<em>man
</em> program will be used to display the manual page,
475 but the
<em>man.viewer
</em> configuration variable may be used to choose
476 other display programs (see below).
</p></div>
486 Display manual page for the command in the
<em>web
</em> (HTML)
487 format. A web browser will be used for that purpose.
489 <div class=
"paragraph"><p>The web browser can be specified using the configuration variable
490 <em>help.browser
</em>, or
<em>web.browser
</em> if the former is not set. If none of
491 these config variables is set, the
<em>git web
--browse
</em> helper script
492 (called by
<em>git help
</em>) will pick a suitable default. See
493 <a href=
"git-web--browse.html">git-web
--browse(
1)
</a> for more information about this.
</p></div>
497 <h2 id=
"_configuration_variables">CONFIGURATION VARIABLES
</h2>
498 <div class=
"sectionbody">
499 <h3 id=
"_help_format">help.format
</h3><div style=
"clear:left"></div>
500 <div class=
"paragraph"><p>If no command line option is passed, the
<em>help.format
</em> configuration
501 variable will be checked. The following values are supported for this
502 variable; they make
<em>git help
</em> behave as their corresponding command
503 line option:
</p></div>
504 <div class=
"ulist"><ul>
507 "man" corresponds to
<em>-m|--man
</em>,
512 "info" corresponds to
<em>-i|--info
</em>,
517 "web" or
"html" correspond to
<em>-w|--web
</em>.
521 <h3 id=
"_help_browser_web_browser_and_browser_lt_tool_gt_path">help.browser, web.browser and browser.
<tool
>.path
</h3><div style=
"clear:left"></div>
522 <div class=
"paragraph"><p>The
<em>help.browser
</em>,
<em>web.browser
</em> and
<em>browser.
<tool
>.path
</em> will also
523 be checked if the
<em>web
</em> format is chosen (either by command line
524 option or configuration variable). See
<em>-w|--web
</em> in the OPTIONS
525 section above and
<a href=
"git-web--browse.html">git-web
--browse(
1)
</a>.
</p></div>
526 <h3 id=
"_man_viewer">man.viewer
</h3><div style=
"clear:left"></div>
527 <div class=
"paragraph"><p>The
<em>man.viewer
</em> config variable will be checked if the
<em>man
</em> format
528 is chosen. The following values are currently supported:
</p></div>
529 <div class=
"ulist"><ul>
532 "man": use the
<em>man
</em> program as usual,
537 "woman": use
<em>emacsclient
</em> to launch the
"woman" mode in emacs
538 (this only works starting with emacsclient versions
22),
543 "konqueror": use
<em>kfmclient
</em> to open the man page in a new konqueror
544 tab (see
<em>Note about konqueror
</em> below).
548 <div class=
"paragraph"><p>Values for other tools can be used if there is a corresponding
549 <em>man.
<tool
>.cmd
</em> configuration entry (see below).
</p></div>
550 <div class=
"paragraph"><p>Multiple values may be given to the
<em>man.viewer
</em> configuration
551 variable. Their corresponding programs will be tried in the order
552 listed in the configuration file.
</p></div>
553 <div class=
"paragraph"><p>For example, this configuration:
</p></div>
554 <div class=
"listingblock">
555 <div class=
"content">
558 viewer = woman
</tt></pre>
560 <div class=
"paragraph"><p>will try to use konqueror first. But this may fail (for example if
561 DISPLAY is not set) and in that case emacs' woman mode will be tried.
</p></div>
562 <div class=
"paragraph"><p>If everything fails, or if no viewer is configured, the viewer specified
563 in the GIT_MAN_VIEWER environment variable will be tried. If that
564 fails too, the
<em>man
</em> program will be tried anyway.
</p></div>
565 <h3 id=
"_man_lt_tool_gt_path">man.
<tool
>.path
</h3><div style=
"clear:left"></div>
566 <div class=
"paragraph"><p>You can explicitly provide a full path to your preferred man viewer by
567 setting the configuration variable
<em>man.
<tool
>.path
</em>. For example, you
568 can configure the absolute path to konqueror by setting
569 <em>man.konqueror.path
</em>. Otherwise,
<em>git help
</em> assumes the tool is
570 available in PATH.
</p></div>
571 <h3 id=
"_man_lt_tool_gt_cmd">man.
<tool
>.cmd
</h3><div style=
"clear:left"></div>
572 <div class=
"paragraph"><p>When the man viewer, specified by the
<em>man.viewer
</em> configuration
573 variables, is not among the supported ones, then the corresponding
574 <em>man.
<tool
>.cmd
</em> configuration variable will be looked up. If this
575 variable exists then the specified tool will be treated as a custom
576 command and a shell eval will be used to run the command with the man
577 page passed as arguments.
</p></div>
578 <h3 id=
"_note_about_konqueror">Note about konqueror
</h3><div style=
"clear:left"></div>
579 <div class=
"paragraph"><p>When
<em>konqueror
</em> is specified in the
<em>man.viewer
</em> configuration
580 variable, we launch
<em>kfmclient
</em> to try to open the man page on an
581 already opened konqueror in a new tab if possible.
</p></div>
582 <div class=
"paragraph"><p>For consistency, we also try such a trick if
<em>man.konqueror.path
</em> is
583 set to something like
<em>A_PATH_TO/konqueror
</em>. That means we will try to
584 launch
<em>A_PATH_TO/kfmclient
</em> instead.
</p></div>
585 <div class=
"paragraph"><p>If you really want to use
<em>konqueror
</em>, then you can use something like
586 the following:
</p></div>
587 <div class=
"listingblock">
588 <div class=
"content">
593 cmd = A_PATH_TO/konqueror
</tt></pre>
595 <h3 id=
"_note_about_git_config_global">Note about git config --global
</h3><div style=
"clear:left"></div>
596 <div class=
"paragraph"><p>Note that all these configuration variables should probably be set
597 using the
<em>--global
</em> flag, for example like this:
</p></div>
598 <div class=
"listingblock">
599 <div class=
"content">
600 <pre><tt>$ git config --global help.format web
601 $ git config --global web.browser firefox
</tt></pre>
603 <div class=
"paragraph"><p>as they are probably more user specific than repository specific.
604 See
<a href=
"git-config.html">git-config(
1)
</a> for more information about this.
</p></div>
606 <h2 id=
"_git">GIT
</h2>
607 <div class=
"sectionbody">
608 <div class=
"paragraph"><p>Part of the
<a href=
"git.html">git(
1)
</a> suite
</p></div>
611 <div id=
"footer-text">
612 Last updated
2011-
07-
23 00:
49:
30 UTC