JAEN

Git

git archive

SafeExport an archive

git archive -o out.zip HEAD

Exports a clean snapshot (no .git) as zip/tar — deliverables from any tag or commit.

Examples

  • git archive -o release.zip v1.2.0Zip a tagged release

Syntax

git archive [-o file] [--format=zip] <tree-ish> [path]

Before you run it

Output only.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store