The Git Index (or staging area) is where Git prepares changes to be committed to the repository.

A primary purpose of having a staging area is to split unrelated changes in the work tree into multiple commits.