summaryrefslogtreecommitdiff
path: root/devdocs/git/git-write-tree.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/git/git-write-tree.html
new repository
Diffstat (limited to 'devdocs/git/git-write-tree.html')
-rw-r--r--devdocs/git/git-write-tree.html6
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=&lt;prefix&gt;/]</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=&lt;prefix&gt;/ </dt> <dd> <p>Writes a tree object that represents a subdirectory <code>&lt;prefix&gt;</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">
+ &copy; 2012&ndash;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>