🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Git Basics: all 10 questions

Quiz: Git Basics · Question 9 of 10

Why does every commit point to its parent?

Why does every commit point to its parent?

  1. A.To save disk space
  2. B.So the commits form a chain of history you can walk back through
  3. C.So GitHub can display avatars
  4. D.To lock the files
Answer & explanation

Correct answer: So the commits form a chain of history you can walk back through

The chain of parents is what git log shows.

Can you get the rest right without peeking?

Take the timed Quiz: Git Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →