Git · Senior · Question 63 of 76

What is the main reason Git can create branches in constant time?

Explanation

No files are copied; switching updates only files that differ between the two snapshots. This cheapness is what makes branch-heavy workflows practical.

Further reading

Problem with a question

Git · Senior · question 63

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz