LinuxCommandLibrary

git-write-tree

Create a tree object from the current index

TLDR

Write tree from index

$ git write-tree
copy
Write with prefix
$ git write-tree --prefix=[subdir/]
copy
Missing OK
$ git write-tree --missing-ok
copy

SYNOPSIS

git write-tree [options]

DESCRIPTION

git write-tree creates a tree object from the current index contents. It is a low-level plumbing command used internally by `git commit` to snapshot the staged file structure into a tree object in the Git object database.

PARAMETERS

--prefix prefix

Write subtree.
--missing-ok
Allow missing objects.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community