]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-write-tree.txt
Merge branch 'js/rebase-reschedule-applies-only-to-interactive' into maint
[thirdparty/git.git] / Documentation / git-write-tree.txt
CommitLineData
2cf565c5
DG
1git-write-tree(1)
2=================
2cf565c5
DG
3
4NAME
5----
c3f0baac 6git-write-tree - Create a tree object from the current index
2cf565c5
DG
7
8
9SYNOPSIS
10--------
7791a1d9 11[verse]
b1889c36 12'git write-tree' [--missing-ok] [--prefix=<prefix>/]
2cf565c5
DG
13
14DESCRIPTION
15-----------
8d951843
DK
16Creates a tree object using the current index. The name of the new
17tree object is printed to standard output.
2cf565c5 18
61f693bd 19The index must be in a fully merged state.
2cf565c5 20
0b444cdb 21Conceptually, 'git write-tree' sync()s the current index contents
2cf565c5
DG
22into a set of tree files.
23In order to have that match what is actually in your directory right
0b444cdb
TR
24now, you need to have done a 'git update-index' phase before you did the
25'git write-tree'.
61f693bd 26
2cf565c5 27
9c1fa70a
BL
28OPTIONS
29-------
30--missing-ok::
0b444cdb 31 Normally 'git write-tree' ensures that the objects referenced by the
61f693bd
JL
32 directory exist in the object database. This option disables this
33 check.
2cf565c5 34
6bd20358
JH
35--prefix=<prefix>/::
36 Writes a tree object that represents a subdirectory
37 `<prefix>`. This can be used to write the tree object
38 for a subproject that is in the named subdirectory.
39
2cf565c5
DG
40GIT
41---
9e1f0a85 42Part of the linkgit:git[1] suite