🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: How Git Works Inside: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What does a blob object store?
  2. Q2. Two students on different laptops each create a file containing exactly the same bytes. What is true about the blob ids Git computes?
  3. Q3. What does this print? (code)
  4. Q4. Which object type represents a folder?
  5. Q5. You change one file inside src/ and commit. Which new objects does Git create?
  6. Q6. Why is creating a branch instant even in a very large project?
  7. Q7. .git/HEAD contains ref: refs/heads/main. What does that mean?
  8. Q8. Why does git commit --amend always produce a new commit id?
  9. Q9. Which statement about commits is correct?
  10. Q10. What does git cat-file -t 323a355 tell you?