commands.sh

git commit-tree

all

Low level utility to create commit objects. See also: `git commit`.

More info →

Options (1)

-S, --gpg-signboolean

Create a GPG-signed commit object

Example: git commit-tree {{tree}} -m "{{message}}" {{[-S|--gpg-sign]}}

Examples (4)

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" [-S|--gpg-sign]

Create a commit object with the specified parent commit object

git commit-tree tree -m "message" -p parent_commit_sha
made by @shridhargupta | data from tldr-pages