apt-get install gitweb
apt-get install apache2
vi /etc/gitweb.conf
# path to git projects (<project>.git)
$projectroot = "/home/git/repositories";
chmod 755 -R /home/git/repositories
/etc/init.d/apache2 restart
http://ip/gitweb
本文出自 “小强” 博客,请务必保留此出处http://3946308.blog.51cto.com/3936308/1772132
原文地址:http://3946308.blog.51cto.com/3936308/1772132