Git · Junior · Question 4 of 75

What does a Git commit store?

Explanation

Conceptually each commit is a full snapshot (unchanged files are reused, not duplicated) with metadata and a link to its parent. Diffs are computed when you ask for them.

Further reading

Problem with a question

Git · Junior · question 4

Test yourself

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

Take this quiz