1GIT-WRITE-TREE(1) Git Manual GIT-WRITE-TREE(1)
2
3
4
6 git-write-tree - Create a tree object from the current index
7
9 git-write-tree [--missing-ok] [--prefix=<prefix>/]
10
12 Creates a tree object using the current index.
13
14 The index must be in a fully merged state.
15
16 Conceptually, git-write-tree sync()s the current index contents into a
17 set of tree files. In order to have that match what is actually in your
18 directory right now, you need to have done a git-update-index phase
19 before you did the git-write-tree.
20
22 --missing-ok
23 Normally git-write-tree ensures that the objects referenced by the
24 directory exist in the object database. This option disables this
25 check.
26
27 --prefix=<prefix>/
28 Writes a tree object that represents a subdirectory <prefix>. This
29 can be used to write the tree object for a subproject that is in
30 the named subdirectory.
31
33 Written by Linus Torvalds <torvalds@osdl.org>
34
36 Documentation by David Greaves, Junio C Hamano and the git-list
37 <git@vger.kernel.org>.
38
40 Part of the git(7) suite
41
42
43
44
45Git 1.5.3.3 10/09/2007 GIT-WRITE-TREE(1)