What does commit object contain?
Answer / Rajeev Gautam
A Git commit object contains metadata about a specific snapshot of a project, such as author, committer, date, message, and the actual snapshot itself (a tree object that points to all files in the snapshot). Additionally, each commit also points to its parent commit(s), creating a chain of commits or commit history.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the function of ‘git rm’?
What is a “conflict” in git and how is it resolved?
Why GIT better than Subversion?
Name a few git commands?
What is the difference between the ‘git diff ’and ‘git status’?
What is the use of ‘git log’?
What is ‘head’ in git and how many heads can be created in a repository?
How to squash or fixup commits?
How can conflict in git resolved?
What is the function of ‘GIT PUSH’ in GIT?
What is a repository in GIT?
What does ‘hooks’ consist of in git?