Documentation / git-instaweb.txton commit Merge branch 'maint' (2fe1839)
   1git-instaweb(1)
   2===============
   3
   4NAME
   5----
   6git-instaweb - Instantly browse your working repository in gitweb
   7
   8SYNOPSIS
   9--------
  10[verse]
  11'git-instaweb' [--local] [--httpd=<httpd>] [--port=<port>]
  12               [--browser=<browser>]
  13'git-instaweb' [--start] [--stop] [--restart]
  14
  15DESCRIPTION
  16-----------
  17A simple script to setup gitweb and a web server for browsing the local
  18repository.
  19
  20OPTIONS
  21-------
  22
  23-l|--local::
  24        Only bind the web server to the local IP (127.0.0.1).
  25
  26-d|--httpd::
  27        The HTTP daemon command-line that will be executed.
  28        Command-line options may be specified here, and the
  29        configuration file will be added at the end of the command-line.
  30        Currently lighttpd, apache2 and webrick are supported.
  31        (Default: lighttpd)
  32
  33-m|--module-path::
  34        The module path (only needed if httpd is Apache).
  35        (Default: /usr/lib/apache2/modules)
  36
  37-p|--port::
  38        The port number to bind the httpd to.  (Default: 1234)
  39
  40-b|--browser::
  41        The web browser that should be used to view the gitweb
  42        page. This will be passed to the 'git-web--browse' helper
  43        script along with the URL of the gitweb instance. See
  44        linkgit:git-web--browse[1] for more information about this. If
  45        the script fails, the URL will be printed to stdout.
  46
  47--start::
  48        Start the httpd instance and exit.  This does not generate
  49        any of the configuration files for spawning a new instance.
  50
  51--stop::
  52        Stop the httpd instance and exit.  This does not generate
  53        any of the configuration files for spawning a new instance,
  54        nor does it close the browser.
  55
  56--restart::
  57        Restart the httpd instance and exit.  This does not generate
  58        any of the configuration files for spawning a new instance.
  59
  60CONFIGURATION
  61-------------
  62
  63You may specify configuration in your .git/config
  64
  65-----------------------------------------------------------------------
  66[instaweb]
  67        local = true
  68        httpd = apache2 -f
  69        port = 4321
  70        browser = konqueror
  71        modulepath = /usr/lib/apache2/modules
  72
  73-----------------------------------------------------------------------
  74
  75If the configuration variable 'instaweb.browser' is not set,
  76'web.browser' will be used instead if it is defined. See
  77linkgit:git-web--browse[1] for more information about this.
  78
  79Author
  80------
  81Written by Eric Wong <normalperson@yhbt.net>
  82
  83Documentation
  84--------------
  85Documentation by Eric Wong <normalperson@yhbt.net>.
  86
  87GIT
  88---
  89Part of the linkgit:git[7] suite