← 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?
- A.Only a new blob
- B.A full copy of every file in the project
- C.A new blob, new trees for src/ and the root folder, and a new commit
- 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 →