diff options
Diffstat (limited to 'devdocs/git/git-write-tree.html')
| -rw-r--r-- | devdocs/git/git-write-tree.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devdocs/git/git-write-tree.html b/devdocs/git/git-write-tree.html new file mode 100644 index 00000000..b032689e --- /dev/null +++ b/devdocs/git/git-write-tree.html @@ -0,0 +1,6 @@ +<h1>git-write-tree</h1> <h2 id="_name">Name</h2> <div class="sectionbody"> <p>git-write-tree - Create a tree object from the current index</p> </div> <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content" data-language="shell">git write-tree [--missing-ok] [--prefix=<prefix>/]</pre> </div> </div> <h2 id="_description">Description</h2> <div class="sectionbody"> <p>Creates a tree object using the current index. The name of the new tree object is printed to standard output.</p> <p>The index must be in a fully merged state.</p> <p>Conceptually, <code>git write-tree</code> sync()s the current index contents into a set of tree files. In order to have that match what is actually in your directory right now, you need to have done a <code>git update-index</code> phase before you did the <code>git write-tree</code>.</p> </div> <h2 id="_options">Options</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-write-tree.txt---missing-ok"> --missing-ok </dt> <dd> <p>Normally <code>git write-tree</code> ensures that the objects referenced by the directory exist in the object database. This option disables this check.</p> </dd> <dt class="hdlist1" id="Documentation/git-write-tree.txt---prefixltprefixgt"> --prefix=<prefix>/ </dt> <dd> <p>Writes a tree object that represents a subdirectory <code><prefix></code>. This can be used to write the tree object for a subproject that is in the named subdirectory.</p> </dd> </dl> </div> </div><div class="_attribution"> + <p class="_attribution-p"> + © 2012–2024 Scott Chacon and others<br>Licensed under the MIT License.<br> + <a href="https://git-scm.com/docs/git-write-tree" class="_attribution-link">https://git-scm.com/docs/git-write-tree</a> + </p> +</div> |
