GIT-INSTAWEB(1)

๐Ÿฆ‹ git-instaweb โ€” instant gitweb, like, right now

okay bestie so this is the Git Manual page for git-instaweb, and honestly? it's giving "tiny script, huge slay". we're talking Git 2.56.0, dated 2026-09-27 โ€” the whole thing is at the bottom too if you need receipts โœจ


โœจ NAME โœจ

git-instaweb โ€” instantly browse your working repository in gitweb ๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

git instaweb [--local] [--httpd=<httpd>] [--port=<port>]
               [--browser=<browser>]
git instaweb [--start] [--stop] [--restart]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

It's a simple little script that sets up gitweb plus a web server so you can browse your local repository. that's it. that's the whole vibe. no cap, it's that easy ๐Ÿซถ


๐Ÿ’– OPTIONS ๐Ÿ’–

  • -l, --local โ€” only bind the web server to the local IP (127.0.0.1). keep it cozy, keep it private ๐Ÿ 
  • -d, --httpd โ€” the HTTP daemon command-line that will be executed. you can drop command-line options in here too, and the configuration file gets added at the end of the command-line. currently supported: apache2, lighttpd, mongoose, plackup, python and webrick. (Default: lighttpd) ๐Ÿ”ฅ
  • -m, --module-path โ€” the module path (only needed if httpd is Apache, so like, only sometimes bestie). (Default: /usr/lib/apache2/modules) ๐Ÿงš
  • -p, --port โ€” the port number to bind the httpd to. (Default: 1234) ๐ŸŽ€
  • -b, --browser โ€” the web browser that should be used to view the gitweb page. this gets passed to the git web--browse helper script along with the URL of the gitweb instance. see git-web--browse(1) for more info about all that. if the script fails, the URL will be printed to stdout โ€” so you're never fully stranded, iconique behavior ๐Ÿ˜ญ
  • start, --start โ€” start the httpd instance and exit. regenerates configuration files as necessary for spawning a new instance ๐ŸŒˆ
  • stop, --stop โ€” stop the httpd instance and exit. > heads up: this does not generate any of the configuration files for spawning a new instance, and it does not close the browser either. so don't come for it ๐Ÿ™ˆ
  • restart, --restart โ€” restart the httpd instance and exit. regenerates configuration files as necessary for spawning a new instance, same as start โญ

๐Ÿ’œ CONFIGURATION ๐Ÿ’œ

you may specify configuration in your .git/config, bestie:

[instaweb]
        local = true
        httpd = apache2 -f
        port = 4321
        browser = konqueror
        modulePath = /usr/lib/apache2/modules

and listen โ€” if the configuration variable instaweb.browser is not set, then web.browser will be used instead if it is defined. see git-web--browse(1) for more information about this ๐Ÿ‘‘


๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹


๐Ÿ‘‘ GIT ๐Ÿ‘‘

part of the git(1) suite โ€” you know the family ๐Ÿ’…


mwah ๐Ÿ’‹ that's the whole page! brought to you by Git 2.56.0, dated 2026-09-27 โ€” go forth and browse your repo, main character ๐Ÿงšโ€โ™€๏ธโœจ

๐Ÿ“ฆ where this page comes from