Skills101
← All practice quizzes

Quiz: How Git Works Inside

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Open the .git folder and see how Git really stores your project. Learn the four object types, why every id is a SHA-1 hash, why branches are cheap, and what HEAD actually is.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What does a blob object store?

  2. Question 2

    Two students on different laptops each create a file containing exactly the same bytes. What is true about the blob ids Git computes?

  3. Question 3

    What does this print?

    import hashlib
    
    content = b""
    print(hashlib.sha1(f"blob {len(content)}\0".encode() + content).hexdigest()[:7])
    
  4. Question 4

    Which object type represents a folder?

  5. Question 5

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

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →