git-archive

archive Create an archive of files from a named tree.…

git archive

Create an archive of files from a named tree. More information: https://git-scm.com/docs/git-archive.

git archive --verbose HEAD

git archive --verbose --format=zip HEAD

git archive --verbose --output={{path/to/file.zip}} HEAD

git archive --output={{path/to/file.tar}} {{branch_name}}

git archive --output={{path/to/file.tar}} HEAD:{{path/to/directory}}

git archive --output={{path/to/file.tar}} --prefix={{path/to/prepend}}/ HEAD

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← git-apply git-archive-file →