From d28edb194be8b64d92b77a156fd33d8ce6fe6c38 Mon Sep 17 00:00:00 2001 From: Muralikrishnan <75822565+Muralikrishnan5971@users.noreply.github.com> Date: Mon, 27 Nov 2023 20:47:54 +0530 Subject: [PATCH] git-write-tree: add page (#11584) * git-write-tree: add page --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/git-write-tree.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/git-write-tree.md diff --git a/pages/common/git-write-tree.md b/pages/common/git-write-tree.md new file mode 100644 index 0000000000..1cc5d5a17e --- /dev/null +++ b/pages/common/git-write-tree.md @@ -0,0 +1,16 @@ +# git write-tree + +> Low level utility to create a tree object from the current index. +> More information: . + +- Create a tree object from the current index: + +`git write-tree` + +- Create a tree object without checking whether objects referenced by the directory exist in the object database: + +`git write-tree --missing-ok` + +- Create a tree object that represents a subdirectory (used to write the tree object for a subproject in the named subdirectory): + +`git write-tree --prefix {{subdirectory}}/`