commands.sh

git instaweb

all

Helper to launch a GitWeb server.

More info →

Options (4)

-l, --localboolean

Listen only on localhost

Example: git instaweb --start {{[-l|--local]}}
-p, --portboolean

Listen on a specific port

Example: git instaweb --start {{[-p|--port]}} {{1234}}
-d, --httpdboolean

Use a specified HTTP daemon

Example: git instaweb --start {{[-d|--httpd]}} {{lighttpd|apache2|mongoose|plackup|webrick}}
-b, --browserboolean

Also auto-launch a web browser

Example: git instaweb --start {{[-b|--browser]}}

Examples (7)

Launch a GitWeb server for the current Git repository

git instaweb --start

Listen only on localhost

git instaweb --start [-l|--local]

Listen on a specific port

git instaweb --start [-p|--port] 1234

Use a specified HTTP daemon

git instaweb --start [-d|--httpd] lighttpd|apache2|mongoose|plackup|webrick

Also auto-launch a web browser

git instaweb --start [-b|--browser]

Stop the currently running GitWeb server

Restart the currently running GitWeb server

git instaweb --restart
made by @shridhargupta | data from tldr-pages