]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-web--browse.txt
Documentation: use [verse] for SYNOPSIS sections
[thirdparty/git.git] / Documentation / git-web--browse.txt
CommitLineData
28394787
JH
1git-web{litdd}browse(1)
2=======================
cb45f83c
CC
3
4NAME
5----
6git-web--browse - git helper script to launch a web browser
7
8SYNOPSIS
9--------
7791a1d9 10[verse]
28394787 11'git web{litdd}browse' [OPTIONS] URL/FILE ...
cb45f83c
CC
12
13DESCRIPTION
14-----------
15
16This script tries, as much as possible, to display the URLs and FILEs
17that are passed as arguments, as HTML pages in new tabs on an already
18opened web browser.
19
20The following browsers (or commands) are currently supported:
21
22* firefox (this is the default under X Window when not using KDE)
23* iceweasel
81f42f11
GB
24* seamonkey
25* iceape
14ea67c0
GB
26* chromium (also supported as chromium-browser)
27* google-chrome (also supported as chrome)
ac3a4a26 28* konqueror (this is the default under KDE, see 'Note about konqueror' below)
81f42f11 29* opera
cb45f83c 30* w3m (this is the default outside graphical environments)
81f42f11 31* elinks
cb45f83c
CC
32* links
33* lynx
34* dillo
35* open (this is the default under Mac OS X GUI)
3b9b1163 36* start (this is the default under MinGW)
cb45f83c 37
1658c614
CC
38Custom commands may also be specified.
39
cb45f83c
CC
40OPTIONS
41-------
62b4698e
ŠN
42-b <browser>::
43--browser=<browser>::
44 Use the specified browser. It must be in the list of supported
cb45f83c
CC
45 browsers.
46
62b4698e
ŠN
47-t <browser>::
48--tool=<browser>::
cb45f83c
CC
49 Same as above.
50
62b4698e
ŠN
51-c <conf.var>::
52--config=<conf.var>::
cb45f83c 53 CONF.VAR is looked up in the git config files. If it's set,
62b4698e 54 then its value specifies the browser that should be used.
cb45f83c
CC
55
56CONFIGURATION VARIABLES
57-----------------------
58
1658c614
CC
59CONF.VAR (from -c option) and web.browser
60~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61
cb45f83c
CC
62The web browser can be specified using a configuration variable passed
63with the -c (or --config) command line option, or the 'web.browser'
64configuration variable if the former is not used.
65
1658c614
CC
66browser.<tool>.path
67~~~~~~~~~~~~~~~~~~~
68
cb45f83c
CC
69You can explicitly provide a full path to your preferred browser by
70setting the configuration variable 'browser.<tool>.path'. For example,
71you can configure the absolute path to firefox by setting
0b444cdb 72'browser.firefox.path'. Otherwise, 'git web--browse' assumes the tool
cb45f83c
CC
73is available in PATH.
74
1658c614
CC
75browser.<tool>.cmd
76~~~~~~~~~~~~~~~~~~
77
78When the browser, specified by options or configuration variables, is
79not among the supported ones, then the corresponding
80'browser.<tool>.cmd' configuration variable will be looked up. If this
28394787 81variable exists then 'git web{litdd}browse' will treat the specified tool
1658c614
CC
82as a custom command and will use a shell eval to run the command with
83the URLs passed as arguments.
84
ac3a4a26
CC
85Note about konqueror
86--------------------
87
b66e00f1 88When 'konqueror' is specified by a command line option or a
ac3a4a26
CC
89configuration variable, we launch 'kfmclient' to try to open the HTML
90man page on an already opened konqueror in a new tab if possible.
91
ed020917 92For consistency, we also try such a trick if 'browser.konqueror.path' is
ac3a4a26
CC
93set to something like 'A_PATH_TO/konqueror'. That means we will try to
94launch 'A_PATH_TO/kfmclient' instead.
95
96If you really want to use 'konqueror', then you can use something like
97the following:
98
99------------------------------------------------
100 [web]
101 browser = konq
102
103 [browser "konq"]
104 cmd = A_PATH_TO/konqueror
105------------------------------------------------
106
b1889c36 107Note about git-config --global
1658c614
CC
108~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
109
cb45f83c
CC
110Note that these configuration variables should probably be set using
111the '--global' flag, for example like this:
112
113------------------------------------------------
114$ git config --global web.browser firefox
115------------------------------------------------
116
117as they are probably more user specific than repository specific.
118See linkgit:git-config[1] for more information about this.
119
cb45f83c
CC
120GIT
121---
9e1f0a85 122Part of the linkgit:git[1] suite