Manual Page Search Parameters

GITSRV.CONF(5) File Formats Manual GITSRV.CONF(5)

gitsrv.confgitsrv configuration file

The gitsrv.conf configuration file contains various options for gitsrv(1). Options are specified one per line, with values separated by whitespace. Empty lines or lines beginning with hash ("#") are ignored.

The options are listed below:

enable
Set enable to "true" to enable stagit page generation. See stagit-hook.conf(5) for stagit configuration.
directory
Enables archive creation for tags and writes archive files to directory.
format
Sets the archive format for gitdist(1). (See its -f flag.)
directory
Enable manpage exports with gitman and configure the base directory.
token
Enable GitHub mirroring with github-mirror(1) and use token as the PAT.
filename
Specify the file that determines if the repository is public or not. Default is git-daemon-export-ok.

/etc/gitsrv.conf
Contains configuration data for gitsrv(1).

Here is an example /etc/gitsrv.conf:

baseurl https://example.com/git
basedir /var/www/htdocs/example.com/git
hasfile git-daemon-export-ok

stagit(1), gitsrv(1), stagit-index(1)

Jacob R. Edwards <jacob@jacobedwards.org>

October 19, 2025 jacob