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       Custom commands may also be specified.
50

OPTIONS

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

CONFIGURATION VARIABLES

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

NOTE ABOUT KONQUEROR

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

AUTHOR

114       Written by Christian Couder <chriscool@tuxfamily.org[1]> and the
115       git-list <git@vger.kernel.org[2]>, based on git mergetool by Theodore
116       Y. Ts’o.
117

DOCUMENTATION

119       Documentation by Christian Couder <chriscool@tuxfamily.org[1]> and the
120       git-list <git@vger.kernel.org[2]>.
121

GIT

123       Part of the git(1) suite
124

NOTES

126        1. chriscool@tuxfamily.org
127           mailto:chriscool@tuxfamily.org
128
129        2. git@vger.kernel.org
130           mailto:git@vger.kernel.org
131
132
133
134Git 1.7.4.4                       04/11/2011                GIT-WEB--BROWSE(1)
Impressum