git archive <tree-ish> [path...]
Create an archive of files from a named tree
Arguments
Name | Description |
---|
tree-ish | |
path | filepaths |
Options
Name | Description |
---|
--format <fmt> | Archive format |
--prefix <prefix> | Prepend prefix to each pathname in the archive |
--add-file <file> | Add untracked file to archive |
-o, --output <file> | Write the archive to this file |
--worktree-attributes | Read .gitattributes in working directory |
-v, --verbose | Report archived files on stderr |
-NUM | Set compression level |
-l, --list | List supported archive formats |
--remote <repo> | Retrieve the archive from remote repository <repo> |
--exec <command> | Path to the remote git-upload-archive command |