Working tree, index and history
#Working tree: files currently on disk. Index: the proposed next snapshot. HEAD: the current commit, usually reached through the checked-out branch.
Fragment
git diff compares working tree with index; --staged compares index with HEAD.