Notas de Hongmu

git commit-tree

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

100% Procesamiento local del navegador 0 Carga de datos

Ejemplos comunes

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

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

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

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

创建 GPG 签名过的提交对象

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

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

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

Consejo: llaves{{…}}Es el parámetro que necesita ser reemplazado (ruta, nombre de archivo, etc.); el comando solo se ejecuta en la terminal local y este sitio no guarda ninguna entrada.

Comparación del texto original en inglés.

Ampliar instrucciones y ejemplos en inglés (fuente 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}}

información de comando

nombre del comandogit commit-tree
Uso用于创建提交对象的底层工具。 另请参阅:`git commit`
Plataformas aplicables通用
Número de ejemplos4 artículo
Documentación oficialhttps://git-scm.com/docs/git-commit-tree
Fuente de datostldr-pages(CC-BY-4.0)· Traducción de chino comunitario

Preguntas frecuentes

git commit-tree ¿Qué hace el comando?

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

git commit-tree ¿Cómo usarlo?

Páginas enumeradas por escena4Ejemplos de uso común: cada ejemplo primero explica el propósito y luego brinda un comando completo que se puede copiar directamente (los parámetros que deben reemplazarse están entre llaves).

git commit-tree ¿Cuáles son las operaciones más utilizadas?

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

¿Qué significan las llaves en el comando?

Corchetes{{…}}Indica que debe reemplazarlo con su propio valor, como la ruta y el nombre del archivo; corchetes para parámetros con el mismo nombre (como[-C|--directory]) indica escritura opcional.