6 git-commit-tree - Create a new commit object
11 'git commit-tree' <tree> [(-p <parent commit>)...] < changelog
15 This is usually not what an end user wants to run directly. See
16 linkgit:git-commit[1] instead.
18 Creates a new commit object based on the provided tree object and
19 emits the new commit object id on stdout.
21 A commit object may have any number of parents. With exactly one
22 parent, it is an ordinary commit. Having more than one parent makes
23 the commit a merge between several lines of history. Initial (root)
24 commits have no parents.
26 While a tree represents a particular directory state of a working
27 directory, a commit represents that state in "time", and explains how
30 Normally a commit would identify a new "HEAD" state, and while git
31 doesn't care where you save the note about that state, in practice we
32 tend to just write the result to the file that is pointed at by
33 `.git/HEAD`, so that we can always see what the last committed
39 An existing tree object
42 Each '-p' indicates the id of a parent commit object.
48 A commit encapsulates:
50 - all parent object ids
51 - author name, email and date
52 - committer name and email and the commit time.
54 While parent object ids are provided on the command line, author and
55 committer information is taken from the following environment variables,
66 (nb "<", ">" and "\n"s are stripped)
68 In case (some of) these environment variables are not set, the information
69 is taken from the configuration items user.name and user.email, or, if not
70 present, system user name and fully qualified hostname.
72 A commit comment is read from stdin. If a changelog
73 entry is not provided via "<" redirection, 'git commit-tree' will just wait
74 for one to be entered and terminated with ^D.
76 include::date-formats.txt[]
80 You don't exist. Go away!::
81 The passwd(5) gecos field couldn't be read
82 Your parents must have hated you!::
83 The passwd(5) gecos field is longer than a giant static buffer.
84 Your sysadmin must hate you!::
85 The passwd(5) name field is longer than a giant static buffer.
94 linkgit:git-write-tree[1]
99 Written by Linus Torvalds <torvalds@osdl.org>
103 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
107 Part of the linkgit:git[1] suite