$ sudo apt-get install gitweb
$ edit /etc/gitweb.conf
# path to git projects (.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
you also can clone this repository on other machine:
git clone http://{your repository ip address}/lynn.git
阅读(1288) | 评论(0) | 转发(0) |