2020-05-10 13:41:53 +01:00
|
|
|
# git instaweb
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
> Helper to launch a GitWeb server.
|
2020-05-10 13:41:53 +01:00
|
|
|
> More information: <https://git-scm.com/docs/git-instaweb>.
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Launch a GitWeb server for the current Git repository:
|
2020-05-10 13:41:53 +01:00
|
|
|
|
|
|
|
`git instaweb --start`
|
|
|
|
|
|
|
|
- Listen only on localhost:
|
|
|
|
|
|
|
|
`git instaweb --start --local`
|
|
|
|
|
|
|
|
- Listen on a specific port:
|
|
|
|
|
|
|
|
`git instaweb --start --port {{1234}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Use a specified HTTP daemon:
|
2020-05-10 13:41:53 +01:00
|
|
|
|
|
|
|
`git instaweb --start --httpd {{lighttpd|apache2|mongoose|plackup|webrick}}`
|
|
|
|
|
|
|
|
- Also auto-launch a web browser:
|
|
|
|
|
|
|
|
`git instaweb --start --browser`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Stop the currently running GitWeb server:
|
2020-05-10 13:41:53 +01:00
|
|
|
|
|
|
|
`git instaweb --stop`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Restart the currently running GitWeb server:
|
2020-05-10 13:41:53 +01:00
|
|
|
|
|
|
|
`git instaweb --restart`
|