1GIT-WEB—BROWSE(1) Git Manual GIT-WEB—BROWSE(1)
2
3
4
6 git-web--browse - git helper script to launch a web browser
7
9 git web—browse [OPTIONS] URL/FILE ...
10
12 This script tries, as much as possible, to display the URLs and FILEs
13 that are passed as arguments, as HTML pages in new tabs on an already
14 opened web browser.
15
16 The following browsers (or commands) are currently supported:
17
18 · firefox (this is the default under X Window when not using KDE)
19
20 · iceweasel
21
22 · konqueror (this is the default under KDE, see Note about konqueror
23 below)
24
25 · w3m (this is the default outside graphical environments)
26
27 · links
28
29 · lynx
30
31 · dillo
32
33 · open (this is the default under Mac OS X GUI)
34
35 · start (this is the default under MinGW)
36
37 Custom commands may also be specified.
38
40 -b BROWSER, --browser=BROWSER
41 Use the specified BROWSER. It must be in the list of supported
42 browsers.
43
44 -t BROWSER, --tool=BROWSER
45 Same as above.
46
47 -c CONF.VAR, --config=CONF.VAR
48 CONF.VAR is looked up in the git config files. If it’s set, then
49 its value specify the browser that should be used.
50
52 CONF.VAR (from -c option) and web.browser
53 The web browser can be specified using a configuration variable passed
54 with the -c (or --config) command line option, or the web.browser
55 configuration variable if the former is not used.
56
57 browser.<tool>.path
58 You can explicitly provide a full path to your preferred browser by
59 setting the configuration variable browser.<tool>.path. For example,
60 you can configure the absolute path to firefox by setting
61 browser.firefox.path. Otherwise, git web—browse assumes the tool is
62 available in PATH.
63
64 browser.<tool>.cmd
65 When the browser, specified by options or configuration variables, is
66 not among the supported ones, then the corresponding browser.<tool>.cmd
67 configuration variable will be looked up. If this variable exists then
68 git web—browse will treat the specified tool as a custom command and
69 will use a shell eval to run the command with the URLs passed as
70 arguments.
71
73 When konqueror is specified by a command line option or a configuration
74 variable, we launch kfmclient to try to open the HTML man page on an
75 already opened konqueror in a new tab if possible.
76
77 For consistency, we also try such a trick if browser.konqueror.path is
78 set to something like A_PATH_TO/konqueror. That means we will try to
79 launch A_PATH_TO/kfmclient instead.
80
81 If you really want to use konqueror, then you can use something like
82 the following:
83
84 [web]
85 browser = konq
86
87 [browser "konq"]
88 cmd = A_PATH_TO/konqueror
89
90
91 Note about git-config --global
92 Note that these configuration variables should probably be set using
93 the --global flag, for example like this:
94
95 $ git config --global web.browser firefox
96
97
98 as they are probably more user specific than repository specific. See
99 git-config(1) for more information about this.
100
102 Written by Christian Couder <chriscool@tuxfamily.org[1]> and the
103 git-list <git@vger.kernel.org[2]>, based on git mergetool by Theodore
104 Y. Ts’o.
105
107 Documentation by Christian Couder <chriscool@tuxfamily.org[1]> and the
108 git-list <git@vger.kernel.org[2]>.
109
111 Part of the git(1) suite
112
114 1. chriscool@tuxfamily.org
115 mailto:chriscool@tuxfamily.org
116
117 2. git@vger.kernel.org
118 mailto:git@vger.kernel.org
119
120
121
122Git 1.7.1 08/16/2017 GIT-WEB—BROWSE(1)