Manual Page Search Parameters

GITSRV(1) General Commands Manual GITSRV(1)

gitsrvGit hook to automatically run stagit

gitsrv [repo ...]

The gitsrv utility generates repository pages with stagit(1) and repository index pages with stagit-index(1). When used without arguments, gitsrv determines the repository pages to generate with the GIT_DIR environment variable. If GIT_DIR isn't set, it only generates an index page. If the styledir configuration option is set, styles are also updated.

If distdir is set, gitdist(1) is used to generate archives for annotated tags.

/etc/gitsrv.conf
gitsrv(5) configuration file.

The gitsrv utility exits 0 on success, and >0 if an error occurs.

Manually initialize repository and index pages for example:

$ gitsrv example

Setup gitsrv for all repositories with the git-daemon-export-ok file:

$ mkdir -p ~/.git/hooks
$ echo '#!/bin/sh
test -e "$GIT_DIR"/git-daemon-export-ok &&
	exec gitsrv' > ~/.git/hooks/post-update
$ chmod +x ~/.git/hooks/post-update
$ git config --global core.hooksPath ~/.git/hooks
$ doas sh -c 'echo hasfile git-daemon-export-ok > /etc/gitsrv.conf'

stagit(1), stagit-index(1), githooks(5), gitdist(1), gitsrv(5)

Jacob R. Edwards <jacob@jacobedwards.org>

October 19, 2025 jacob