The working tree is the folder of the project, the files as you edit them. The staging area (also called the index) holds the snapshot that the next commit will record; git add copies a file of the working tree into it, and git commit records it in the repository.
git add and git commit move changes to the right; git restore brings a file back from the staging area, and git restore --staged unstages it. Each diff compares two neighbouring places.