What is a git commit and what does the commit object contain?
Answer / Ravi Ratnakar Choudhary
A Git commit represents a snapshot of your project at a specific point in time. It includes the changes made to the files, a commit message describing those changes, metadata like author information, date, and parent commit hashes. The commit object also contains a unique identifier (hash), which allows for easy tracking and reference of each commit.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of ‘git log’?
What is git Is-tree?
How can conflict in git resolved?
What commands will you use to bring a new feature to the main branch?
What is a repository in GIT?
How to remove a file from git without removing it from your file system?
What are the advantages of using GIT?
Why is it desirable to create an additional commit rather than amending an existing commit?
What work is restored when the deleted branch is recovered?
What is ‘head’ in git and how many heads can be created in a repository?
What are the benefits of using version control system?
What is ‘head’ in git?