save the files before committing