CmdID

CmdID / Commands

git-archive

Create an archive of files from a tree. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Create a .tar archive from the contents of the current HEAD and print it to stdout

git archive --verbose HEADIdentify

Use the Zip format and report progress verbosely

git archive --verbose --format zip HEADIdentify

Output the Zip archive to a specific file

git archive --verbose --output path/to/file.zip HEADIdentify

Create a .tar archive from the contents of the latest commit of a specific branch

git archive --output path/to/file.tar branch_nameIdentify

Use the contents of a specific directory

git archive --output path/to/file.tar HEAD:path/to/directoryIdentify

Prepend a path to each file to archive it inside a specific directory

git archive --output path/to/file.tar --prefix path/to/prepend/ HEADIdentify