News for hackers. Stuff that matters.
Re:Some Miscellaneous Git Facts by durazabu on Saturday October 21, 2023 @04:35AM (#37965116)
The index and the staging area are not the same thing. If you define staging area as what will be committed, then the staging area is only one part of the index. The index also records untracked files and conflicts for example.

https://git-scm.com/docs/index-format

Re:Some Miscellaneous Git Facts by rmwaite on Saturday October 21, 2023 @07:11AM (#37965832)
I've always understood the index as being the staging area and then you stage things in that staging area. Then those things become staged (also known as cached) in the index. I'll admit I've never quite understood why "cached" and "staged" are used interchangeably (or at least it seems that way).