← Quiz: How Git Works Inside: all 10 questions
Quiz: How Git Works Inside · Question 9 of 10
Which statement about commits is correct?
Which statement about commits is correct?
- A.A commit stores only the lines that changed
- B.A commit points to a full snapshot (a tree) and its parent commit(s)
- C.A commit stores a copy of every file, even unchanged ones, again
- D.A commit has no link to earlier commits
Answer & explanation
Correct answer: A commit points to a full snapshot (a tree) and its parent commit(s)
Snapshots are cheap because unchanged files point to the same existing blobs.
Can you get the rest right without peeking?
Take the timed Quiz: How Git Works Inside quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →