I had this error a lot fatal: Pathspec 'galaxyoriginal/merger2/snapshot_000' is in submodule 'Gadget-2.0.7/galaxyoriginal/merger2'. So i made a new repository with the merger2 data.