git instaweb

Administration

Browse the repository in a web browser


The 'git instaweb' command starts a small local web server running gitweb and opens your browser on it, so you can browse the repository's history, files and diffs in a web page. It needs a web server such as lighttpd or Python installed.

Synopsis

git instaweb [--local] [--httpd=<httpd>] [--port=<port>] [--browser=<browser>]
git instaweb --stop
[ ] optional| or<arg> placeholder... repeatable--flag option

Examples

Start

git instaweb --httpd=python

Browse at http://127.0.0.1:1234.


Stop

git instaweb --stop

Shut the server down.

Workflow Examples

1
git instaweb --httpd=python --port=4321

Start

2
git instaweb --stop

Stop afterwards

Troubleshooting

lighttpd not found

Cause: No supported web server installed

Use --httpd=python or install lighttpd

Tips & Pitfalls

Best Practices

  • ✓Use --local so only your computer can reach the server.

FAQ

A:

With --local, no: only your machine can open it.