Git · Senior · Question 30 of 76

What is the index (staging area) technically?

Explanation

.git/index stores the next commit's tree in flat form plus cached metadata (size, mtime), so Git can skip rehashing unchanged files. During conflicts it holds three stages per path.

Further reading

Problem with a question

Git · Senior · question 30

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