Commit rewrite file