Commit changes in index.