7f076b4198237d7ee22189716b052d78ffe8b6ee
[git/git.git] / Documentation / git-write-tree.txt
1 git-write-tree(1)
2 =================
3 v0.1, May 2005
4
5 NAME
6 ----
7 git-write-tree - Creates a tree from the current cache
8
9
10 SYNOPSIS
11 --------
12 'git-write-tree'
13 [--missing-ok]
14
15 DESCRIPTION
16 -----------
17 Creates a tree object using the current cache.
18
19 The cache must be merged.
20
21 Conceptually, "git-write-tree" sync()s the current directory cache contents
22 into a set of tree files.
23 In order to have that match what is actually in your directory right
24 now, you need to have done a "git-update-cache" phase before you did the
25 "git-write-tree".
26
27 OPTIONS
28 -------
29 --missing-ok::
30 Normally "git-write-tree" ensures that the objects referenced by the
31 directory exist in the object database. This option disables this check.
32
33 Author
34 ------
35 Written by Linus Torvalds <torvalds@osdl.org>
36
37 Documentation
38 --------------
39 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
40
41 GIT
42 ---
43 Part of the link:git.html[git] suite
44