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
11

DESCRIPTION

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

OPTIONS

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

GIT

35       Part of the git(1) suite
36
37
38
39Git 2.18.1                        05/14/2019                 GIT-WRITE-TREE(1)
Impressum