in General by (1.9m points)
What does a Git Commit object contain?

1 Answer

0 votes
by (1.9m points)

The commit object contains the top-level tree object hash, parent commits hash(if any), author and committer information, commit date and commit message.

You can view this through the git log command.

Example:

commit object

...