# git-instaweb
> 原文: [https://git-scm.com/docs/git-instaweb](https://git-scm.com/docs/git-instaweb)
## 名稱
git-instaweb - 立即在gitweb中瀏覽您的工作存儲庫
## 概要
```
git instaweb [--local] [--httpd=<httpd>] [--port=<port>]
[--browser=<browser>]
git instaweb [--start] [--stop] [--restart]
```
## 描述
設置`gitweb`的簡單腳本和用于瀏覽本地存儲庫的Web服務器。
## OPTIONS
```
-l
```
```
--local
```
僅將Web服務器綁定到本地IP(127.0.0.1)。
```
-d
```
```
--httpd
```
將執行的HTTP守護程序命令行。這里可以指定命令行選項,配置文件將添加到命令行的末尾。目前支持apache2,lighttpd,mongoose,plackup,python和webrick。 (默認值:lighttpd)
```
-m
```
```
--module-path
```
模塊路徑(僅當httpd是Apache時才需要)。 (默認值:/ usr / lib / apache2 / modules)
```
-p
```
```
--port
```
要將httpd綁定到的端口號。 (默認值:1234)
```
-b
```
```
--browser
```
應該用于查看gitweb頁面的Web瀏覽器。這將被傳遞到 _git web {litdd}瀏覽_幫助程序腳本以及gitweb實例的URL。有關詳細信息,請參閱 [git-web {litdd}瀏覽[1]](https://git-scm.com/docs/git-web{litdd}browse) 。如果腳本失敗,則URL將打印到stdout。
```
start
```
```
--start
```
啟動httpd實例并退出。根據需要重新生成配置文件以生成新實例。
```
stop
```
```
--stop
```
停止httpd實例并退出。這不會生成任何用于生成新實例的配置文件,也不會關閉瀏覽器。
```
restart
```
```
--restart
```
重新啟動httpd實例并退出。根據需要重新生成配置文件以生成新實例。
## 組態
您可以在.git / config中指定配置
```
[instaweb]
local = true
httpd = apache2 -f
port = 4321
browser = konqueror
modulePath = /usr/lib/apache2/modules
```
如果未設置配置變量`instaweb.browser`,則在定義時將使用`web.browser`。有關詳細信息,請參閱 [git-web {litdd}瀏覽[1]](https://git-scm.com/docs/git-web{litdd}browse) 。
## 也可以看看
[gitweb [1]](https://git-scm.com/docs/gitweb)
## GIT
部分 [git [1]](https://git-scm.com/docs/git) 套件
- git
- git-config
- git-help
- git-init
- git-clone
- git-add
- git-status
- git-diff
- git-commit
- git-reset
- git-rm
- git-mv
- git-branch
- git-checkout
- git-merge
- git-mergetool
- git-log
- git-stash
- git-tag
- git-worktree
- git-fetch
- git-pull
- git-push
- git-remote
- git-submodule
- git-show
- git-log
- git-shortlog
- git-describe
- git-apply
- git-cherry-pick
- git-rebase
- git-revert
- git-bisect
- git-blame
- git-grep
- gitattributes
- giteveryday
- gitglossary
- githooks
- gitignore
- gitmodules
- gitrevisions
- gittutorial
- gitworkflows
- git-am
- git-format-patch
- git-send-email
- git-request-pull
- git-svn
- git-fast-import
- git-clean
- git-gc
- git-fsck
- git-reflog
- git-filter-branch
- git-instaweb
- git-archive
- git-bundle
- git-daemon
- git-update-server-info
- git-cat-file
- git-check-ignore
- git-checkout-index
- git-commit-tree
- git-count-objects
- git-diff-index
- git-for-each-ref
- git-hash-object
- git-ls-files
- git-merge-base
- git-read-tree
- git-rev-list
- git-rev-parse
- git-show-ref
- git-symbolic-ref
- git-update-index
- git-update-ref
- git-verify-pack
- git-write-tree