I don't know what to say or how to help you considering the fact that I don't know you or your gf. But you can't hide that, and it wouldn't be right to leave her, so don't. She's carrying your child.
If her parents are ok with the fact that you know, she's pregnant, perhaps they can support yall. Try talking to your parents about it, or a close friend. Best of luck dude