Español ▾
Localized versions of git-write-tree manual
  1. English
  2. Deutsch
  3. Español
  4. Português (Brasil)
  5. Русский
  6. українська мова
  7. 简体中文
Topics ▾ Latest version ▾ git-write-tree last updated in 2.50.0
Changes in the git-write-tree manual
  1. 2.50.1 → 2.51.2 no changes
  2. 2.50.0 2025年06月16日
  3. 2.1.4 → 2.49.1 no changes
  4. 2.0.5 2014年12月17日

Check your version of git by running

git --version

NOMBRE

git-write-tree - Create a tree object from the current index

SINOPSIS

git write-tree [--missing-ok] [--prefix=<prefijo>/]

DESCRIPCIÓN

Crea un objeto árbol utilizando el índice actual. El nombre del nuevo objeto árbol se imprime en la salida estándar.

El índice debe estar en un estado totalmente fusionado.

Conceptualmente, git write-tree sincroniza el contenido del índice actual en un conjunto de ficheros de árbol. Para que coincida con lo que hay en tu directorio ahora mismo, necesitas haber hecho una fase de git update-index antes de hacer el git write-tree.

OPCIONES

--missing-ok

Normalmente git write-tree asegura que los objetos referenciados por el directorio existen en la base de datos de objetos. Esta opción desactiva esta comprobación.

--prefix=<prefijo>/

Escribe un objeto árbol que representa un subdirectorio <prefijo>. Puede utilizarse para escribir el objeto árbol de un subproyecto que se encuentre en el subdirectorio nombrado.

GIT

Parte de la suite de git[1]

AltStyle によって変換されたページ (->オリジナル) /