ホンムノート

git commit-tree

用于创建提交对象的底层工具。 另请参阅:`git commit`

100% ブラウザのローカル処理 0 データアップロード

一般的な例

创建带有指定提交信息的提交对象

git commit-tree {{树对象哈希}} -m "{{提交信息}}"

从文件读取提交信息创建提交对象(使用 `-` 表示从标准输入读取)

git commit-tree {{树对象哈希}} -F {{路径/到/文件}}

创建 GPG 签名过的提交对象

git commit-tree {{树对象哈希}} -m "{{提交信息}}" {{[-S|--gpg-sign]}}

创建指定父提交的提交对象

git commit-tree {{树对象哈希}} -m "{{提交信息}}" -p {{父提交哈希}}

ヒント: 中括弧{{…}}置き換える必要があるのはパラメータ (パス、ファイル名など) です。 コマンドはローカル端末でのみ実行され、このサイトでは入力は保存されません。

英語原文比較

英語の説明と例を展開します (ソース tldr-pages)

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

Create a commit object with the specified parent commit object

git commit-tree {{tree}} -m "{{message}}" -p {{parent_commit_sha}}

コマンド情報

コマンド名git commit-tree
目的用于创建提交对象的底层工具。 另请参阅:`git commit`
対応プラットフォーム通用
例の数4 記事
公式ドキュメントhttps://git-scm.com/docs/git-commit-tree
データソースtldr-pages(CC-BY-4.0)· コミュニティ中国語翻訳

よくある質問

git commit-tree コマンドは何をするのでしょうか?

用于创建提交对象的底层工具。 另请参阅:`git commit`

git commit-tree 使い方は?

シーン別ページ一覧4一般的に使用される例: 各例では、最初に目的を説明し、次に直接コピーできる完全なコマンドを示します (置換する必要があるパラメーターは中括弧内にあります)。

git commit-tree 最も一般的に使用される操作は何ですか?

创建带有指定提交信息的提交对象:git commit-tree {{树对象哈希}} -m "{{提交信息}}"

コマンドの中の中括弧は何を意味しますか?

中括弧{{…}}パスやファイル名などの独自の値に置き換える必要があることを示します。 同じ名前のパラメータには角かっこ (例:[-C|--directory]) は任意の書き込みを示します。