logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

git-write-tree.1 (2320B)


  1. '\" t
  2. .\" Title: git-write-tree
  3. .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
  5. .\" Date: 2025-03-14
  6. .\" Manual: Git Manual
  7. .\" Source: Git 2.49.0
  8. .\" Language: English
  9. .\"
  10. .TH "GIT\-WRITE\-TREE" "1" "2025-03-14" "Git 2\&.49\&.0" "Git Manual"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. git-write-tree \- Create a tree object from the current index
  32. .SH "SYNOPSIS"
  33. .sp
  34. .nf
  35. \fIgit write\-tree\fR [\-\-missing\-ok] [\-\-prefix=<prefix>/]
  36. .fi
  37. .SH "DESCRIPTION"
  38. .sp
  39. Creates a tree object using the current index\&. The name of the new tree object is printed to standard output\&.
  40. .sp
  41. The index must be in a fully merged state\&.
  42. .sp
  43. Conceptually, \fIgit write\-tree\fR sync()s the current index contents into a set of tree files\&. In order to have that match what is actually in your directory right now, you need to have done a \fIgit update\-index\fR phase before you did the \fIgit write\-tree\fR\&.
  44. .SH "OPTIONS"
  45. .PP
  46. \-\-missing\-ok
  47. .RS 4
  48. Normally
  49. \fIgit write\-tree\fR
  50. ensures that the objects referenced by the directory exist in the object database\&. This option disables this check\&.
  51. .RE
  52. .PP
  53. \-\-prefix=<prefix>/
  54. .RS 4
  55. Writes a tree object that represents a subdirectory
  56. \fI<prefix>\fR\&. This can be used to write the tree object for a subproject that is in the named subdirectory\&.
  57. .RE
  58. .SH "GIT"
  59. .sp
  60. Part of the \fBgit\fR(1) suite