Commit changes before revert