Linear actuators commonly have mounting brackets that permit rotation about an axis with the appropriate bracket. In your application, the rotation would be required, as the lid angle changes as it opens. Both ends of the actuator have to rotate about the fastener, usually a pin or bolt.
Replace either end with a quick release pin, which allows you to disengage the actuator for manual operation. You may want to consider pin designs with securing capability as shown in the image below.
Be aware that this results in the entire weight of the hatch/lid bearing on the human in the system.