1GIT-WRITE-TREE(1)                 Git Manual                 GIT-WRITE-TREE(1)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

12       Creates a tree object using the current index. The name of the new tree
13       object is printed to standard output.
14
15       The index must be in a fully merged state.
16
17       Conceptually, git write-tree sync()s the current index contents into a
18       set of tree files. In order to have that match what is actually in your
19       directory right now, you need to have done a git update-index phase
20       before you did the git write-tree.
21

OPTIONS

23       --missing-ok
24           Normally git write-tree ensures that the objects referenced by the
25           directory exist in the object database. This option disables this
26           check.
27
28       --prefix=<prefix>/
29           Writes a tree object that represents a subdirectory <prefix>. This
30           can be used to write the tree object for a subproject that is in
31           the named subdirectory.
32

GIT

34       Part of the git(1) suite
35
36
37
38Git 2.33.1                        2021-10-12                 GIT-WRITE-TREE(1)
Impressum