Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Latest commit

 

History

History
39 lines (23 loc) · 955 Bytes

83.md

File metadata and controls

39 lines (23 loc) · 955 Bytes

git-write-tree

原文: https://git-scm.com/docs/git-write-tree

名称

git-write-tree - 从当前索引创建树对象

概要

git write-tree [--missing-ok] [--prefix=<prefix>/]

描述

使用当前索引创建树对象。新树对象的名称将打印到标准输出。

索引必须处于完全合并状态。

从概念上讲, git write-tree sync()将当前索引内容转换为一组树文件。为了使你的目录中实际存在的匹配,你需要在 git write-tree 之前完成 git update-index 阶段。

OPTIONS

 --missing-ok 

通常 git write-tree 确保目录引用的对象存在于对象数据库中。此选项禁用此检查。

 --prefix=<prefix>/ 

写一个表示子目录&lt;prefix&gt;的树对象。这可用于为命名子目录中的子项目编写树对象。

GIT

部分 git [1] 套件