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
时间: 2024-12-12 17:27:35