Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/Documentation/git-write-tree.adoc # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / Documentation / git-write-tree.adoc` 42 lines ยท 1031 bytes Raw Blame History 1 git-write-tree(1) 2 ================= 3 4 NAME 5 ---- 6 git-write-tree - Create a tree object from the current index 7 8 9 SYNOPSIS 10 -------- 11 [synopsis] 12 git write-tree [--missing-ok] [--prefix=/] 13 14 DESCRIPTION 15 ----------- 16 Creates a tree object using the current index. The name of the new 17 tree object is printed to standard output. 18 19 The index must be in a fully merged state. 20 21 Conceptually, `git write-tree` sync()s the current index 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-index` phase before you did the 25 `git write-tree`. 26 27 28 OPTIONS 29 ------- 30 `--missing-ok`:: 31 Normally `git write-tree` ensures that the objects referenced by the 32 directory exist in the object database. This option disables this 33 check. 34 35 `--prefix=/`:: 36 Writes a tree object that represents a subdirectory 37 __. This can be used to write the tree object 38 for a subproject that is in the named subdirectory. 39 40 GIT 41 --- 42 Part of the linkgit:git[1] suite