From bae2dd054fdc96927cdf7decb7ace7365292c5c9 Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Fri, 8 Jan 2021 08:55:25 -0500 Subject: [PATCH] git-commit-tree: add page (#5113) * git-commit-tree: add page * Update pages/common/git-commit-tree.md Co-authored-by: Starbeamrainbowlabs * Apply suggestions from code review Still learning :D Co-authored-by: Axel Navarro * Update pages/common/git-commit-tree.md Co-authored-by: Starbeamrainbowlabs Co-authored-by: Axel Navarro --- pages/common/git-commit-tree.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/git-commit-tree.md diff --git a/pages/common/git-commit-tree.md b/pages/common/git-commit-tree.md new file mode 100644 index 000000000..4d174596f --- /dev/null +++ b/pages/common/git-commit-tree.md @@ -0,0 +1,21 @@ +# git commit-tree + +> Low level utility to create commit objects. +> See also: `git commit`. +> More information: . + +- Create a commit object with the specified message: + +`git commit-tree {{tree}} -m "{{message}}"` + +- Create a commit object reading the message from a file (use `-` for `stdin`): + +`git commit-tree {{tree}} -F {{path/to/file}}` + +- Create a GPG-signed commit object: + +`git commit-tree {{tree}} -m "{{message}}" --gpg-sign` + +- Create a commit object with the specified parent commit object: + +`git commit-tree {{tree}} -m "{{message}}" -p {{parent_commit_sha}}`