Detaches local changes before pulling