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

AUTHOR

34       Written by Linus Torvalds <torvalds@osdl.org[1]>
35

DOCUMENTATION

37       Documentation by David Greaves, Junio C Hamano and the git-list
38       <git@vger.kernel.org[2]>.
39

GIT

41       Part of the git(1) suite
42

NOTES

44        1. torvalds@osdl.org
45           mailto:torvalds@osdl.org
46
47        2. git@vger.kernel.org
48           mailto:git@vger.kernel.org
49
50
51
52Git 1.7.4.4                       04/11/2011                 GIT-WRITE-TREE(1)
Impressum