mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 22:51:09 +00:00
Update cheatsheets
This commit is contained in:
37
git-instaweb
Normal file
37
git-instaweb
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 --start`
|
||||
|
||||
- Listen only on localhost:
|
||||
|
||||
`git instaweb --start --local`
|
||||
|
||||
- Listen on a specific port:
|
||||
|
||||
`git instaweb --start --port {{1234}}`
|
||||
|
||||
- Use a specified HTTP daemon:
|
||||
|
||||
`git instaweb --start --httpd {{lighttpd|apache2|mongoose|plackup|webrick}}`
|
||||
|
||||
- Also auto-launch a web browser:
|
||||
|
||||
`git instaweb --start --browser`
|
||||
|
||||
- Stop the currently running GitWeb server:
|
||||
|
||||
`git instaweb --stop`
|
||||
|
||||
- Restart the currently running GitWeb server:
|
||||
|
||||
`git instaweb --restart`
|
||||
Reference in New Issue
Block a user