[Debian] gitweb installation
How to gitweb install
I assumed you have already installed apache2 and it is properly configured.
1. Install gitweb
$ apt-get install gitweb
2. Configure gitweb
$ vi /etc/gitweb.conf
modify projectroot directory for your git repository
# path to git projects (<project>.git) $projectroot = "/var/cache/git"; # directory to use for temp files $git_temp = "/tmp"; # target of the home link on top of all pages #$home_link = $my_uri || "/"; # html text to include at home page #$home_text = "indextext.html"; # file with project list; by default, simply scan the projectroot dir. #$projects_list = $projectroot; # stylesheet to use #@stylesheets = ("static/gitweb.css"); # javascript code for gitweb #$javascript = "static/gitweb.js"; # logo to use #$logo = "static/git-logo.png"; # the 'favicon' #$favicon = "static/git-favicon.png"; # git-diff-tree(1) options to use for generated patches #@diff_opts = ("-M"); @diff_opts = (); |
3. Restart your apache
$ apache2ctl restart