What is a commit in Git?
Show answerHide answer
Correct answer: C It is a snapshot of all of the files in an entire project at a specific point in time.
Explanation
Answer Option (Which option is correct) C. It is a snapshot of all of the files in an entire project at a specific point in time.Explanation:
A commit records a snapshot of the project at a particular point in its history. Branches are movable references to commits, while tags name particular points. A commit is not just the list of edits to one file.
Why the other options are incorrect:
A. It is a floating pointer to a stream of changes made to a project at a point in time:
A floating reference describes branch-like behavior. A commit is a fixed recorded snapshot. Its content does not move when the branch advances.
B. It is a fixed pointer to a set of changes with an easily readable name:
A readable fixed name resembles a tag. That name can point to a commit. It is not the commit snapshot itself.
D. It is a list of files that includes all of the changes made to each file over time:
A file history lists changes over time. One commit represents one project state. History is built from the connected commits.
References:
Git project - Commits and branch references