From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/git/git-write-tree.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 devdocs/git/git-write-tree.html (limited to 'devdocs/git/git-write-tree.html') 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 @@ +

git-write-tree

Name

git-write-tree - Create a tree object from the current index

Synopsis

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

Description

Creates a tree object using the current index. The name of the new tree object is printed to standard output.

The index must be in a fully merged state.

Conceptually, git write-tree 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 git update-index phase before you did the git write-tree.

Options

--missing-ok

Normally git write-tree ensures that the objects referenced by the directory exist in the object database. This option disables this check.

--prefix=<prefix>/

Writes a tree object that represents a subdirectory <prefix>. This can be used to write the tree object for a subproject that is in the named subdirectory.

+

+ © 2012–2024 Scott Chacon and others
Licensed under the MIT License.
+ https://git-scm.com/docs/git-write-tree +

+
-- cgit v1.2.3