2 .\" Title: git-web--browse
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
7 .\" Source: Git 2.46.0.267.gbb9c16bd4f
10 .TH "GIT\-WEB\-\-BROWSE" "1" "2024-08-19" "Git 2\&.46\&.0\&.267\&.gbb9c16" "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>)\&...\:
39 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\&.
41 The following browsers (or commands) are currently supported:
51 firefox (this is the default under X Window when not using KDE)
95 chromium (also supported as chromium\-browser)
106 google\-chrome (also supported as chrome)
117 konqueror (this is the default under KDE, see
118 \fINote about konqueror\fR
141 w3m (this is the default outside graphical environments)
196 open (this is the default under Mac OS X GUI)
207 start (this is the default under MinGW)
218 cygstart (this is the default under Cygwin)
232 Custom commands may also be specified\&.
235 \-b <browser>, \-\-browser=<browser>
237 Use the specified browser\&. It must be in the list of supported browsers\&.
240 \-t <browser>, \-\-tool=<browser>
245 \-c <conf\&.var>, \-\-config=<conf\&.var>
247 CONF\&.VAR is looked up in the Git config files\&. If it\(cqs set, then its value specifies the browser that should be used\&.
249 .SH "CONFIGURATION VARIABLES"
250 .SS "CONF\&.VAR (from \-c option) and web\&.browser"
252 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\&.
253 .SS "browser\&.<tool>\&.path"
255 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\&.
256 .SS "browser\&.<tool>\&.cmd"
258 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\&.
259 .SH "NOTE ABOUT KONQUEROR"
261 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\&.
263 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\&.
265 If you really want to use \fIkonqueror\fR, then you can use something like the following:
275 cmd = A_PATH_TO/konqueror
280 .SS "Note about git\-config \-\-global"
282 Note that these configuration variables should probably be set using the \fB\-\-global\fR flag, for example like this:
288 $ git config \-\-global web\&.browser firefox
294 as they are probably more user specific than repository specific\&. See \fBgit-config\fR(1) for more information about this\&.
297 Part of the \fBgit\fR(1) suite