What is the .git/index file?
- A log of where HEAD has pointed
- A list of all branches and tags
- The packfile holding all repository objects
- The staging area for the next commit
The index records the paths and blob IDs that the next commit will contain. Refs, the reflog and packfiles live elsewhere in
Play Git ▸
.git.