94 lines
2.0 KiB
HTML
94 lines
2.0 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of GIT-WRITE-TREE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>GIT-WRITE-TREE</H1>
|
|
Section: Git Manual (1)<BR>Updated: 03/04/2021<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
git-write-tree - Create a tree object from the current index
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
<PRE>
|
|
<I>git write-tree</I> [--missing-ok] [--prefix=<prefix>/]
|
|
</PRE>
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
Creates a tree object using the current index. The name of the new tree object is printed to standard output.
|
|
<P>
|
|
The index must be in a fully merged state.
|
|
<P>
|
|
Conceptually, <I>git write-tree</I> 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 <I>git update-index</I> phase before you did the <I>git write-tree</I>.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
--missing-ok
|
|
<DL COMPACT><DT id="1"><DD>
|
|
Normally
|
|
<I>git write-tree</I>
|
|
ensures that the objects referenced by the directory exist in the object database. This option disables this check.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
--prefix=<prefix>/
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Writes a tree object that represents a subdirectory
|
|
<B><prefix></B>. This can be used to write the tree object for a subproject that is in the named subdirectory.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>GIT</H2>
|
|
|
|
<P>
|
|
Part of the <B><A HREF="/cgi-bin/man/man2html?1+git">git</A></B>(1) suite
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="7"><A HREF="#lbAF">GIT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:15 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|