GIT-ARCHIVE(1) Git Manual GIT-ARCHIVE(1) (NAME) git-archive - (SYNOPSIS) git archive [--format=] [--list] [--prefix=/] [] [-o | --output=] [--worktree-attributes] [--remote= [--exec=]] [...] (DESCRIPTION) . . git archive (tree ID) (commit ID) (tag ID) . . . tar pax git get-tar-commit-id . ZIP (file comment) . (OPTIONS) --format= . tar zip tar.gz tgz tar..command . --format ( foo.zip zip ). tar . -l, --list . -v, --verbose (stderr). --prefix=/ / . . --add-file . . ( ../). . -o , --output= (stdout). --add-file= . . --prefix ( ) --add-file (basename) . --add-virtual-file=: . . C . (:) . . --add-file . --add-file --prefix . --worktree-attributes .gitattributes ( " (ATTRIBUTES)" ). --mtime=