add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -0,0 +1,28 @@
# git archive
> 从树中创建文件的归档。
> 更多信息:<https://git-scm.com/docs/git-archive>。
- 从当前 HEAD 的内容创建一个 tar 归档并将其打印到 `stdout`
`git archive {{-v|--verbose}} HEAD`
- 使用 Zip 格式并详细报告进度:
`git archive {{-v|--verbose}} --format zip HEAD`
- 将 Zip 归档输出到特定文件:
`git archive {{-v|--verbose}} {{-o|--output}} {{path/to/file.zip}} HEAD`
- 从特定分支的最新提交的内容创建一个 tar 归档:
`git archive {{-o|--output}} {{path/to/file.tar}} {{branch_name}}`
- 使用特定目录的内容:
`git archive {{-o|--output}} {{path/to/file.tar}} HEAD:{{path/to/directory}}`
- 在每个文件前添加路径以将其归档到特定目录中:
`git archive {{-o|--output}} {{path/to/file.tar}} --prefix {{path/to/prepend}}/ HEAD`