Commit necessary files before cleaning