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