← 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?
- A.Git copies files in the background
- B.A branch is a tiny file holding one commit id
- C.Branches are stored only on GitHub
- 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 →