Subcommands (1)
Options (2)
-v, --verbosebooleanCreate a `.tar` archive from the contents of the current `HEAD` and print it to `stdout`
Example:
git archive {{[-v|--verbose]}} HEAD-o, --outputbooleanOutput the Zip archive to a specific file
Example:
git archive {{[-v|--verbose]}} {{[-o|--output]}} {{path/to/file.zip}} HEADExamples (6)
Create a `.tar` archive from the contents of the current `HEAD` and print it to `stdout`
git archive [-v|--verbose] HEADUse the Zip format and report progress verbosely
git archive [-v|--verbose] --format zip HEADOutput the Zip archive to a specific file
git archive [-v|--verbose] [-o|--output] path/to/file.zip HEADCreate a `.tar` archive from the contents of the latest commit of a specific branch
git archive [-o|--output] path/to/file.tar branch_nameUse the contents of a specific directory
git archive [-o|--output] path/to/file.tar HEAD:path/to/directoryPrepend a path to each file to archive it inside a specific directory
git archive [-o|--output] path/to/file.tar --prefix path/to/prepend/ HEADmade by @shridhargupta | data from tldr-pages