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

Quiz: How Git Works Inside · Question 5 of 10

You change one file inside src/ and commit. Which new objects does Git create?

You change one file inside src/ and commit. Which new objects does Git create?

  1. A.Only a new blob
  2. B.A full copy of every file in the project
  3. C.A new blob, new trees for src/ and the root folder, and a new commit
  4. D.Only a new commit
Answer & explanation

Correct answer: A new blob, new trees for src/ and the root folder, and a new commit

Every tree above the changed file gets a new id; unchanged files and folders are shared.

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 →