Git · Patches and plumbing

git commit-tree

Creates a commit object from a tree without moving a branch. Plumbing.

Syntax
git commit-tree <tree> -p <parent>

Example

Example
git commit-tree HEAD^{tree} -p HEAD -m "manual commit"

More in this group

git am git apply git apply --check git bundle git bundle verify git format-patch git read-tree git replace

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course