LinuxCommandLibrary

git-archive-file

TLDR

Create archive with branch name

$ git archive-file
copy
Create archive from specific branch
$ git archive-file --branch [main]
copy

SYNOPSIS

git archive-file [options]

DESCRIPTION

git archive-file creates a zip archive with a filename including the branch name and commit hash. Part of git-extras. Useful for creating uniquely named release archives.

PARAMETERS

--branch name

Branch to archive.

SEE ALSO

Copied to clipboard