commit a index file.