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.
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store