2 .\" Title: git-web--browse
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.39.1.231.ga7caae2729
10 .TH "GIT\-WEB\-\-BROWSE" "1" "01/17/2023" "Git 2\&.39\&.1\&.231\&.ga7caae" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-web--browse \- Git helper script to launch a web browser
35 \fIgit web\-\-browse\fR [<options>] (<URL>|<file>)\&...
40 This script tries, as much as possible, to display the URLs and FILEs that are passed as arguments, as HTML pages in new tabs on an already opened web browser\&.
42 The following browsers (or commands) are currently supported:
52 firefox (this is the default under X Window when not using KDE)
96 chromium (also supported as chromium\-browser)
107 google\-chrome (also supported as chrome)
118 konqueror (this is the default under KDE, see
119 \fINote about konqueror\fR
142 w3m (this is the default outside graphical environments)
197 open (this is the default under Mac OS X GUI)
208 start (this is the default under MinGW)
219 cygstart (this is the default under Cygwin)
233 Custom commands may also be specified\&.
236 \-b <browser>, \-\-browser=<browser>
238 Use the specified browser\&. It must be in the list of supported browsers\&.
241 \-t <browser>, \-\-tool=<browser>
246 \-c <conf\&.var>, \-\-config=<conf\&.var>
248 CONF\&.VAR is looked up in the Git config files\&. If it\(cqs set, then its value specifies the browser that should be used\&.
250 .SH "CONFIGURATION VARIABLES"
251 .SS "CONF\&.VAR (from \-c option) and web\&.browser"
253 The web browser can be specified using a configuration variable passed with the \-c (or \-\-config) command\-line option, or the \fBweb\&.browser\fR configuration variable if the former is not used\&.
254 .SS "browser\&.<tool>\&.path"
256 You can explicitly provide a full path to your preferred browser by setting the configuration variable \fBbrowser\&.<tool>\&.path\fR\&. For example, you can configure the absolute path to firefox by setting \fIbrowser\&.firefox\&.path\fR\&. Otherwise, \fIgit web\-\-browse\fR assumes the tool is available in PATH\&.
257 .SS "browser\&.<tool>\&.cmd"
259 When the browser, specified by options or configuration variables, is not among the supported ones, then the corresponding \fBbrowser\&.<tool>\&.cmd\fR configuration variable will be looked up\&. If this variable exists then \fIgit web\-\-browse\fR will treat the specified tool as a custom command and will use a shell eval to run the command with the URLs passed as arguments\&.
260 .SH "NOTE ABOUT KONQUEROR"
262 When \fIkonqueror\fR is specified by a command\-line option or a configuration variable, we launch \fIkfmclient\fR to try to open the HTML man page on an already opened konqueror in a new tab if possible\&.
264 For consistency, we also try such a trick if \fIbrowser\&.konqueror\&.path\fR is set to something like \fBA_PATH_TO/konqueror\fR\&. That means we will try to launch \fBA_PATH_TO/kfmclient\fR instead\&.
266 If you really want to use \fIkonqueror\fR, then you can use something like the following:
276 cmd = A_PATH_TO/konqueror
282 .SS "Note about git\-config \-\-global"
284 Note that these configuration variables should probably be set using the \fB\-\-global\fR flag, for example like this:
290 $ git config \-\-global web\&.browser firefox
297 as they are probably more user specific than repository specific\&. See \fBgit-config\fR(1) for more information about this\&.
300 Part of the \fBgit\fR(1) suite