Manual Page Search Parameters

GITDIST(1) General Commands Manual GITDIST(1)

gitdistCreate archives for git tags

gitdist -o dir [-as] [-t tag] [-f format] [repo ...]

The gitdist utility creates archives of files for git tags in the given repositories, outputting them in dir. Archives are named using the repository directory name and the tag name (minus any leading "v"), e.g. "name-tag.tar.gz". Newly generated archives are printed to stdout

If any repo arguments are specified gitdist operates on those, otherwise it falls back on the GIT_DIR environment variable or the current working directory if it's undefined.

The following options are available:

Create an archives for every tag.
Group archives into subdirectories by name.
dir
Set the archive output directory.
tag
Only archives for tag.
format
Specify the archive format (see git-archive(1) for options). Default "tar.gz".

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

Generate archives for every tag in the gitsrv repository:

$ gitdist -a -o /var/www/htdocs/dist gitsrv

gitsrv(1), git-archive(5)

Jacob R. Edwards <jacob@jacobedwards.org>

March 16, 2026 jacob