Question
Which of the following is the best description of a Git commit?
- A. a snapshot of the entire repository at a specific point in time, capturing the state of all files in the project Correct
- B. a record of the most recent changes made by a developer in Git
- C. a series of changes made to a file, or set of files, in Git
- D. a log message that describes the purpose of the changes made to the files in a Git repository
Explanation
Git records history as snapshots in time called commits: each commit captures the state of all tracked files in the project at that moment, like taking a photo. A commit is not just the latest changes or a series of changes, and the commit message is only one part of a commit that describes it.