1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "GIT-COMMIT-TREE" 1 "" "" ""
22 git-commit-tree \- Creates a new commit object
26 git\-commit\-tree <tree> [\-p <parent commit>]* < changelog
31 Creates a new commit object based on the provided tree object and emits the new commit object id on stdout\&. If no parent is given then it is considered to be an initial tree\&.
34 A commit object usually has 1 parent (a commit after a change) or up to 16 parents\&. More than one parent represents a merge of branches that led to them\&.
37 While a tree represents a particular directory state of a working directory, a commit represents that state in "time", and explains how to get there\&.
40 Normally a commit would identify a new "HEAD" state, and while git doesn't care where you save the note about that state, in practice we tend to just write the result to the file that is pointed at by \&.git/HEAD, so that we can always see what the last committed state was\&.
46 An existing tree object
50 Each \-p indicates the id of a parent commit object\&.
52 .SH "COMMIT INFORMATION"
55 A commit encapsulates:
62 author name, email and date
65 committer name and email and the commit time\&.
69 If not provided, "git\-commit\-tree" uses your name, hostname and domain to provide author and committer info\&. This can be overridden by either \&.git/config file, or using the following environment variables\&.
80 (nb "<", ">" and "\\n"s are stripped)
83 In \&.git/config file, the following items are used for GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL:
88 email = "your@email\&.address\&.xz"
92 A commit comment is read from stdin (max 999 chars)\&. If a changelog entry is not provided via "<" redirection, "git\-commit\-tree" will just wait for one to be entered and terminated with ^D\&.
97 You don't exist\&. Go away!
98 The passwd(5) gecos field couldn't be read
101 Your parents must have hated you!
102 The password(5) gecos field is longer than a giant static buffer\&.
105 Your sysadmin must hate you!
106 The password(5) name field is longer than a giant static buffer\&.
111 \fBgit\-write\-tree\fR(1)
116 Written by Linus Torvalds <torvalds@osdl\&.org>
121 Documentation by David Greaves, Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
126 Part of the \fBgit\fR(7) suite