What does the Git index exactly contain, and what command can I use to view the content of the index?
Update
Thanks for all your answe
.git/index) containing a sorted list of path names, each with permissions and the SHA1 of a blob object;git ls-files can show you the contents of the index. Please note that words index, stage, and cache are the same thing in Git: they are used interchangeably.
Git index, or Git cache, has 3 important properties:
Source: