This material is work-in-progress ...
Do not follow instructions here until this notice is removed.
cgit is a CGI-application that was written in C and a web interface for git repositories provides.
Running instance: git.alpinelinux.org
Make sure that Lighttpd is already installed.
You will receive the lighttpd status as stopped or started if it is already installed. If you receive the answer: service `lighttpd' does not exist. issue the command below:
Create a cgit.conf file into the lighttpd directory with the following content:
Finally, add the following line to the lighttpd.conf file:
Initialize a sample git repository
Edit the /etc/cgitrc file:
And make sure you have at least the following lines:
Uncomment this line, if you want to store the repository in its own file
Create the file
Now add every repository
repo.url=sample repo.path=/var/git/sample.git repo.desc=Sample master foo repository email@example.com repo.readme=info/web/about.html
If you want to group your repositories, add the every repository to a group.