how to setup gitweb on ubuntu
时间:2009-05-24 来源:linuxGentoo
$ sudo apt-get install gitweb
$ edit /etc/gitweb.conf
# path to git projects (<project>.git)
$projectroot = "/home/lynn/public/"; (/home/lynn/public is also our DocumentRoot)
$ pushd /home/lynn/public
$ sudo ln -sf /usr/share/gitweb/* .
$ git clone --bare {somewhere} lynn.git
$ touch lynn.git/git-daemon-export-ok
$ cp lynn.git/hooks/post-update.sample lynn.git/hooks/post-update
$ chmod a+x lynn.git/hooks/post-update
open your brower,input http://localhost/cgi-bin/gitweb.cgi
you also can clone this repository on other machine: git clone http://{your repository ip address}/lynn.git
$ chmod a+x lynn.git/hooks/post-update
open your brower,input http://localhost/cgi-bin/gitweb.cgi

you also can clone this repository on other machine: git clone http://{your repository ip address}/lynn.git
相关阅读 更多 +