Cells that arise from the inner cell mass and are irreversibly committed to give rise to eggs or sperm. Primitive germline cells (which are germline stem cells) migrate from the posterior of the early postimplantation embryo to the developing gonads, known as genital ridges, where they commit to spermatogenesis (in testes) and oogenesis (in ovaries).