uTools-Manuals/docs/git/git write-tree.html
2019-05-07 10:40:55 +08:00

1 line
1.7 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="c-markdown doc-markdown"><div class="doc-postil"><div class="c-markdown"><h2>命名</h2></div></div><div class="doc-postil"><div class="c-markdown"><p>git-write-tree  - 从当前索引创建一个树形对象</p></div></div><div class="doc-postil"><div class="c-markdown"><h2>概要</h2></div></div><div class="doc-postil"><div class="c-markdown"><pre><code class="language-Bash">git write-tree [--missing-ok] [--prefix=&lt;prefix&gt;/]</code></pre></div></div><div class="doc-postil"><div class="c-markdown"><h2>描述</h2></div></div><div class="doc-postil"><div class="c-markdown"><p>使用当前索引创建树对象。新树对象的名称被打印到标准输出。</p></div></div><div class="doc-postil"><div class="c-markdown"><p>索引必须处于完全合并状态。</p></div></div><div class="doc-postil"><div class="c-markdown"><p>从概念上讲,<code>git write-tree</code>sync将当前索引内容同步到一组树文件中。为了让您的目录中的内容与您的目录匹配您需要先完成一个<code>git update-index</code>阶段<code>git write-tree</code></p></div></div><div class="doc-postil"><div class="c-markdown"><h2>选项</h2></div></div><div class="doc-postil"><div class="c-markdown"><p>--missing-ok</p></div></div><div class="doc-postil"><div class="c-markdown"><p>通常<code>git write-tree</code>确保目标引用的对象存在于对象数据库中。该选项禁用此检查。</p></div></div><div class="doc-postil"><div class="c-markdown"><p>--prefix=&lt;prefix&gt;/</p></div></div><div class="doc-postil"><div class="c-markdown"><p>写一个表示子目录的树对象<code>&lt;prefix&gt;</code>。这可以用于为位于指定子目录中的子项目编写树对象。</p></div></div></div>