What does ‘Oh my God!’ mean?

(Used to describe excitement or surprise). Eg. “Oh my God! You scared me!”