What does commit object contain?



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

Post New Answer

More Git Interview Questions

Explain what is commit message?

1 Answers  


What is the purpose of branching and how many branching strategies can you apply?

1 Answers  


What is git Is-tree?

1 Answers  


How will you know in git if a branch has already been merged into master?

1 Answers  


What is another option for merging in git?

1 Answers  


Describe the branching strategies you have used.

1 Answers  


How is git instaweb used?

0 Answers  


Explain git stash, pop?

1 Answers  


How will you know in GIT if a branch has been already merged into master?

1 Answers  


What is git fork? How to create tag?

1 Answers  


In git how do you revert a commit that has already been pushed and made public?

1 Answers  


What is the function of git clone?

1 Answers  


Categories