how to unmodify files before commit