An index represents the on-disk state of Git's working tree. Changes made to a given index exist only in memory until written to disk using index-write.