1GIT-WEB--BROWSE(1)                Git Manual                GIT-WEB--BROWSE(1)
2
3
4

NAME

6       git-web--browse - Git helper script to launch a web browser
7

SYNOPSIS

9       git web--browse [<options>] <url|file>...
10

DESCRIPTION

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       ·   seamonkey
23
24       ·   iceape
25
26       ·   chromium (also supported as chromium-browser)
27
28       ·   google-chrome (also supported as chrome)
29
30       ·   konqueror (this is the default under KDE, see Note about konqueror
31           below)
32
33       ·   opera
34
35       ·   w3m (this is the default outside graphical environments)
36
37       ·   elinks
38
39       ·   links
40
41       ·   lynx
42
43       ·   dillo
44
45       ·   open (this is the default under Mac OS X GUI)
46
47       ·   start (this is the default under MinGW)
48
49       ·   cygstart (this is the default under Cygwin)
50
51       ·   xdg-open
52
53       Custom commands may also be specified.
54

OPTIONS

56       -b <browser>, --browser=<browser>
57           Use the specified browser. It must be in the list of supported
58           browsers.
59
60       -t <browser>, --tool=<browser>
61           Same as above.
62
63       -c <conf.var>, --config=<conf.var>
64           CONF.VAR is looked up in the Git config files. If it’s set, then
65           its value specifies the browser that should be used.
66

CONFIGURATION VARIABLES

68   CONF.VAR (from -c option) and web.browser
69       The web browser can be specified using a configuration variable passed
70       with the -c (or --config) command-line option, or the web.browser
71       configuration variable if the former is not used.
72
73   browser.<tool>.path
74       You can explicitly provide a full path to your preferred browser by
75       setting the configuration variable browser.<tool>.path. For example,
76       you can configure the absolute path to firefox by setting
77       browser.firefox.path. Otherwise, git web--browse assumes the tool is
78       available in PATH.
79
80   browser.<tool>.cmd
81       When the browser, specified by options or configuration variables, is
82       not among the supported ones, then the corresponding browser.<tool>.cmd
83       configuration variable will be looked up. If this variable exists then
84       git web--browse will treat the specified tool as a custom command and
85       will use a shell eval to run the command with the URLs passed as
86       arguments.
87

NOTE ABOUT KONQUEROR

89       When konqueror is specified by a command-line option or a configuration
90       variable, we launch kfmclient to try to open the HTML man page on an
91       already opened konqueror in a new tab if possible.
92
93       For consistency, we also try such a trick if browser.konqueror.path is
94       set to something like A_PATH_TO/konqueror. That means we will try to
95       launch A_PATH_TO/kfmclient instead.
96
97       If you really want to use konqueror, then you can use something like
98       the following:
99
100                   [web]
101                           browser = konq
102
103                   [browser "konq"]
104                           cmd = A_PATH_TO/konqueror
105
106   Note about git-config --global
107       Note that these configuration variables should probably be set using
108       the --global flag, for example like this:
109
110           $ git config --global web.browser firefox
111
112       as they are probably more user specific than repository specific. See
113       git-config(1) for more information about this.
114

GIT

116       Part of the git(1) suite
117
118
119
120Git 2.26.2                        2020-04-20                GIT-WEB--BROWSE(1)
Impressum