snippetbashTip
git instaweb — Helper to launch a GitWeb server. More information: <https://git-scm.com/docs/git-instaweb>.
Viewed 0 times
serverhelpercommandlaunchcligitwebgit instawebmore
Problem
How to use the
git instaweb command: Helper to launch a GitWeb server. More information: <https://git-scm.com/docs/git-instaweb>.Solution
git instaweb — Helper to launch a GitWeb server. More information: <https://git-scm.com/docs/git-instaweb>.Launch a GitWeb server for the current Git repository:
git instaweb --startListen 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:
git instaweb --stopRestart the currently running GitWeb server:
git instaweb --restartCode Snippets
Launch a GitWeb server for the current Git repository
git instaweb --startListen 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]}}Context
tldr-pages: common/git instaweb
Revisions (0)
No revisions yet.