🎙 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 6 of 10

Why is creating a branch instant even in a very large project?

Why is creating a branch instant even in a very large project?

  1. A.Git copies files in the background
  2. B.A branch is a tiny file holding one commit id
  3. C.Branches are stored only on GitHub
  4. D.Git compresses the project first
Answer & explanation

Correct answer: A branch is a tiny file holding one commit id

git branch just writes a 41-byte file under .git/refs/heads/.

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 →