Install the gitweb webfrontend
A nice gitweb theme can be found here: git://

aptitude install gitweb
mkdir -p /var/www/git/cgi-bin
ln -s /usr/lib/cgi-bin/gitweb.cgi /var/www/git/cgi-bin
cp -a /usr/share/gitweb/* /var/www/git

Configure apache:

a2enmod rewrite
cat > /etc/apache2/sites-available/git <<EOM
<VirtualHost *:80>
    DocumentRoot /var/www/git
    SetEnv      GITWEB_CONFIG   /etc/gitweb.conf
    RewriteEngine on
    # make the front page an internal rewrite to the gitweb script
    RewriteRule ^/$  /cgi-bin/gitweb.cgi
    # make access for "dumb clients" work
    RewriteRule ^/(.*\.git/(?!/?(HEAD|info|objects|refs)).*)?$ /cgi-bin/gitweb.cgi%{REQUEST_URI}  [L,PT]
  <Directory /var/www/git/cgi-bin>
    Options +ExecCGI -Indexes
    SetHandler cgi-script
a2ensite git
/etc/init.d/apache2 restart

Add your project to gitweb

ln -s /path/to/project/.git /var/cache/git/project
howto/git/gitweb.txt · Last modified: 2014-07 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready