yes marriage is a lifetime commitment, you do not just marry out of convenience. Think thru carefully so that you do not hurt your girlfriend deeper too.
That being said, I've seen guys who made their girlfriends pregnant and decided to take on this responsibility and got married. they may...