简体中文 ▾
Localized versions of git-mktree manual
Topics ▾
Email
Latest version
▾
git-mktree last updated in 2.43.0
Changes in the git-mktree manual
Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
Guides
- gitattributes
- Command-line interface conventions
- Everyday Git
- Frequently Asked Questions (FAQ)
- Glossary
- Hooks
- gitignore
- gitmodules
- Revisions
- Submodules
- Tutorial
- Workflows
- All guides...
Administration
Plumbing Commands
- 2.43.1 → 2.52.0 no changes
- 2.43.0 2023年11月20日
- 2.36.1 → 2.42.4 no changes
- 2.36.0 2022年04月18日
- 2.18.1 → 2.35.8 no changes
- 2.18.0 2018年06月21日
- 2.10.5 → 2.17.6 no changes
- 2.9.5 2017年07月30日
- 2.1.4 → 2.8.6 no changes
- 2.0.5 2014年12月17日
名称
git-mktree - 从 ls-tree 格式化文本构建树对象
概述
git mktree [-z] [--missing] [--batch]
描述
以非递归的 ls-tree 输出格式读取标准输入,并创建一个树形对象。 树条目的顺序由 mktree 规范化,所以不需要对输入进行预先排序。 建立的树形对象的对象名称被写入标准输出。
选项
- -z
-
读取以 NUL 结尾的
ls-tree-z输出。 - --missing
-
允许缺失的对象。 默认行为(没有这个选项)是验证每个树条目的 sha1 标识了一个现有对象。 这个选项对处理 gitlink 条目(又称 "子模块")没有影响,它总是被允许缺失。
- --batch
-
允许在退出前建立一个以上的目录树对象。 每棵树之间都有一个空行。最后的换行是可选的。 注意 - 如果使用
-z选项,则以 NUL 结束行。
GIT
属于 git[1] 文档