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