add time of commit and commit message to index file