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