LinuxCommandLibrary

git-instaweb

Browse repository via web interface

TLDR

Start web interface

$ git instaweb
copy
Start with specific server
$ git instaweb --httpd=[lighttpd]
copy
Stop web server
$ git instaweb --stop
copy
Restart web server
$ git instaweb --restart
copy
Specify port
$ git instaweb --port=[8080]
copy

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, apache2, or webrick) 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

--httpd daemon

HTTP daemon (lighttpd, apache2, webrick).
--port port
Port number.
--browser browser
Web browser to use.
--stop
Stop the server.
--restart
Restart the server.
-l, --local
Bind to localhost only.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community