Git

NOME

git-instaweb - Navegue instantaneamente no seu repositório de trabalho com o gitweb

RESUMO

git instaweb [--local] [--httpd=<httpd>] [--port=<porta>]
               [--browser=<browser>]
git instaweb [--start] [--stop] [--restart]

DESCRIÇÃO

Um script simples para configurar o gitweb e um servidor da web para navegar no repositório local.

OPÇÕES

-l
--local

Amarre o servidor da web apenas ao endereço IP local (127.0.0.1).

-d
--httpd

The HTTP daemon command-line that will be executed. Command-line options may be specified here, and the configuration file will be added at the end of the command-line. Currently apache2, lighttpd, mongoose, plackup, python and webrick are supported. (Default: lighttpd)

-m
--module-path

The module path (only needed if httpd is Apache). (Default: /usr/lib/apache2/modules)

-p
--port

The port number to bind the httpd to. (Default: 1234)

-b
--browser

O navegador da web que deve ser utilizado para exibir a página gitweb. Isso será encaminhado ao script auxiliar git web--browse junto com a URL da instância gitweb. Para obter mais informações sobre isso consulte git-web--browse[1]. Caso o script falhe, a URL será exibida no stdout.

start
--start

Start the httpd instance and exit. Regenerate configuration files as necessary for spawning a new instance.

stop
--stop

Stop the httpd instance and exit. This does not generate any of the configuration files for spawning a new instance, nor does it close the browser.

restart
--restart

Restart the httpd instance and exit. Regenerate configuration files as necessary for spawning a new instance.

CONFIGURAÇÃO

Você pode definir a sua configuração em seu .git/config

[instaweb]
	local = true
	httpd = apache2 -f
	port = 4321
	browser = konqueror
	modulePath = /usr/lib/apache2/modules

Caso a variável de configuração instaweb.browser não esteja definida, a variável ` web.browser` será utilizada em seu lugar caso esteja definida. Para obter mais informações sobre isso consulte git-web--browse[1].

VEJA TAMBÉM

GIT

Parte do conjunto git[1]

scroll-to-top