git-stash: add new 'pop' subcommand
[git/dscho.git] / Documentation / git-help.txt
blob0926dc12bab23285256b8cd7906b79b7e5f5616f
1 git-help(1)
2 ===========
4 NAME
5 ----
6 git-help - display help information about git
8 SYNOPSIS
9 --------
10 'git help' [-a|--all|-i|--info|-m|--man|-w|--web] [COMMAND]
12 DESCRIPTION
13 -----------
15 With no options and no COMMAND given, the synopsis of the 'git'
16 command and a list of the most commonly used git commands are printed
17 on the standard output.
19 If the option '--all' or '-a' is given, then all available commands are
20 printed on the standard output.
22 If a git command is named, a manual page for that command is brought
23 up. The 'man' program is used by default for this purpose, but this
24 can be overridden by other options or configuration variables.
26 Note that 'git --help ...' is identical as 'git help ...' because the
27 former is internally converted into the latter.
29 OPTIONS
30 -------
31 -a|--all::
32         Prints all the available commands on the standard output. This
33         option supersedes any other option.
35 -i|--info::
36         Use the 'info' program to display the manual page, instead of
37         the 'man' program that is used by default.
39 -m|--man::
40         Use the 'man' program to display the manual page. This may be
41         used to override a value set in the 'help.format'
42         configuration variable.
44 -w|--web::
45         Use a web browser to display the HTML manual page, instead of
46         the 'man' program that is used by default.
48 The web browser can be specified using the configuration variable
49 'help.browser', or 'web.browser' if the former is not set. If none of
50 these config variables is set, the 'git-web--browse' helper script
51 (called by 'git-help') will pick a suitable default. See
52 linkgit:git-web--browse[1] for more information about this.
54 CONFIGURATION VARIABLES
55 -----------------------
57 If no command line option is passed, the 'help.format' configuration
58 variable will be checked. The following values are supported for this
59 variable; they make 'git-help' behave as their corresponding command
60 line option:
62 * "man" corresponds to '-m|--man',
63 * "info" corresponds to '-i|--info',
64 * "web" or "html" correspond to '-w|--web',
66 The 'help.browser', 'web.browser' and 'browser.<tool>.path' will also
67 be checked if the 'web' format is chosen (either by command line
68 option or configuration variable). See '-w|--web' in the OPTIONS
69 section above and linkgit:git-web--browse[1].
71 Note that these configuration variables should probably be set using
72 the '--global' flag, for example like this:
74 ------------------------------------------------
75 $ git config --global help.format web
76 $ git config --global web.browser firefox
77 ------------------------------------------------
79 as they are probably more user specific than repository specific.
80 See linkgit:git-config[1] for more information about this.
82 Author
83 ------
84 Written by Junio C Hamano <gitster@pobox.com> and the git-list
85 <git@vger.kernel.org>.
87 Documentation
88 -------------
89 Initial documentation was part of the linkgit:git[7] man page.
90 Christian Couder <chriscool@tuxfamily.org> extracted and rewrote it a
91 little. Maintenance is done by the git-list <git@vger.kernel.org>.
93 GIT
94 ---
95 Part of the linkgit:git[7] suite