git-instaweb
Browse repository via web interface
TLDR
SYNOPSIS
git instaweb [options]
DESCRIPTION
git instaweb instantly browses the working repository in gitweb by starting a temporary local web server. It provides a quick way to view repository history, branches, and files through a web interface without setting up a permanent server.The command launches a web server (lighttpd by default, or apache2, mongoose, plackup, python, webrick) on port 1234 and opens the repository in your default browser. The interface shows commits, file browsing, blame annotations, and diff viewing. When done, use `--stop` to shut down the server.This is particularly useful for demonstrating repository history to others or when you prefer a graphical view but don't want to use a full GUI application. The web interface is read-only and doesn't require network access.
PARAMETERS
-d, --httpd daemon
HTTP daemon to use (lighttpd, apache2, mongoose, plackup, python, webrick). Default: lighttpd.-p, --port port
Port number to bind. Default: 1234.-b, --browser browser
Web browser to use for viewing.-m, --module-path path
Module path (only needed for Apache). Default: /usr/lib/apache2/modules.--start
Start the httpd instance and exit.--stop
Stop the httpd instance and exit.--restart
Restart the httpd instance and exit.-l, --local
Bind to localhost (127.0.0.1) only.
SEE ALSO
gitweb(1), git-daemon(1)
