The process in which the anatomical structure of the hypoglossal nerve is generated and organized. This motor nerve innervates all the intrinsic and all but one of the extrinsic muscles of the tongue.
CN XII morphogenesis