Web frontend that ships with Git. Old. Still works.
gitweb is the original CGI-based repository browser bundled with Git. It serves a read-only web view of one or more bare repositories.
Think of gitweb as a Perl CGI that walks your repo filesystem and renders summary, log, tree, blob, and commit pages. It is old, ugly, and reliable.
gitweb is configured via gitweb.conf and served by any web server
that can run CGI (Apache, lighttpd, nginx+fcgiwrap).
Quick start without a real web server:
git instaweb --httpd=lighttpd --port=1234
Production: build from gitweb/ and install the static assets +
gitweb.cgi behind your web server, with GITWEB_PROJECTROOT set.| Flag | What it does |
|---|---|
GITWEB_PROJECTROOT | Filesystem path under which bare repos live (passed at build/config time) |
GITWEB_CONFIG | Path to gitweb.conf override file |
GITWEB_LIST | Explicit list file of projects to expose |
GITWEB_HOMETEXT | Path to indextext.html shown on the front page |
GITWEB_SITENAME | Header title for your install |
GITWEB_EXPORT_OK | ⚠️ If set, only repos containing this marker file are listed |
git instaweb --httpd=lighttpd --port=1234 --localgit instaweb --stopgit instaweb --httpd=lighttpd --port=1234 --localxdg-open http://127.0.0.1:1234/touch /srv/git/myrepo.git/git-daemon-export-ok && touch /srv/git/myrepo.git/.gitweb-export-okmake GITWEB_PROJECTROOT=/srv/git GITWEB_SITENAME='RoboDoc Git' gitwebHit each option, then Check answers. Score is recorded; Next is always open.