Browse your repo locally on 127.0.0.1.
git instaweb spins up a local gitweb instance against the current repository so you can browse history, blobs, and refs in a real web UI without any server setup. It is the fastest path from 'I want to look at my repo in a browser' to actually doing it.
A throwaway HTTP daemon plus gitweb CGI, configured on the fly and pointed at your repo. You start it, it opens a browser at 127.0.0.1, you stop it, nothing persists.
git instaweb [--local] [--httpd=<httpd>] [--module-path=<path>]
[--port=<port>] [--browser=<browser>]
[--start | --stop | --restart]| Flag | What it does |
|---|---|
--httpd=<httpd> | Pick the daemon: lighttpd, apache2, mongoose, plackup, webrick. |
--port=<n> | Bind port (default 1234) on 127.0.0.1. |
--browser=<browser> | Override which browser command to launch. |
--start | Start the daemon without launching a browser. |
--stop | ⚠️ Kill the running instaweb daemon for this repo. |
--restart | Bounce the daemon, useful after config changes. |
--local | Bind to loopback only; defensive default for laptops. |
git instaweb --httpd=lighttpd --startgit instaweb --httpd=webrick --port=8080 --startgit instaweb --httpd=mongoose --browser=firefoxgit instaweb --stopHit each option, then Check answers. Score is recorded; Next is always open.