I don’t recall anyone saying “golly” or “gosh” when I was growing up in the 1960s, although I’ve heard “gee” all my life.
All three are “minced oaths”, and it’s not hard to see where they likely came from – “gosh” and “golly” start with the same “go-” as “god”, which kids weren’t supposed to say as an exclamation. “Gee” is a truncated “Jesus”
Similarly. you have, as substitutes for “Jesus Christ” the similar and similarly stressed “Judas Priest”, “Cheese on Rice”, and “(Great) Caesar’s ghost”. The last of these was used by Horace Bixby (according to Mark Twain in Life on the Mississippi) and by Clark Kent’s editor, Perry White. (In one comic book use, White actually has a vision of Caesar’s ghost after he says it). I suspect that Bixby’s use is a euphemism for something else. Twain said that Bixby regularly used eloquent curses, something Bixby denied to the end of his life.
I have a theory about another minced oath – “Jiminy cricket” or “Jiminy crickets”. The Disney cartoon has John Darling saying this in Peter Pan. And, of course, they use it for the name of the character in Pinocchio (in Carlo Collodi’s original book, the cricket has no name, but is simply “Cricket”. Pinocchio gets fed up with his ersatz conscience and squashes him into bug juice in the book, something they left out of the movie)
Of course, anyone looking for evidence of euphemism hasn’t got far to look – Jiminy Cricket’s initials are “J.C.”, just like a certain religious figure. But it goes deeper than that. Or possibly I have an overactive imagination. Follow me here.
Minced Oaths are nothing new. In ancient Rome women and children used them, and two of them were Edepol and Ecastor were two of these. They were, in turn, derived from Pollux/Polydeuces and Castor, the twin sons of Zeus and Leda (and Tyndareus, but it’s complicated). The words mean, literally, “By Pollux” and “By Castor”. Using the names of demigods instead of gods was apparently les serious than using the names of gods.
Collectively, they were the Gemini.
In the 18th and 19th century (and before, as well, but these are more important to my point) the classics were part of an education for the young, who frequently had to learn Latin and/or Greek to be considered “educated”. Even at lower social levels, the influence of the classics filtered down to become part of education. (Heck, I took two years of classical Latin myself). Lots of bits of Roman culture got introduced into everyday life, including expressions. But instead of getting students to use Ecastor and Edepol, they introduced the use of “Gemini”, which eroded through time into “Jiminy”
If you think this is farfetched, Etymology Online cites “By Gemini” attested to in 1802.
Jiminy(interj.)
exclamation of surprise, by Jiminy!, 1803, colloquial form of Gemini (by Gemini is attested from 1802), a disguised oath, perhaps based on Jesu Domine “Jesus Lord.”
Most people not having a classical education, this got rationalized into a euphemism for Christ. Some say it’s a worn-down form of “Jesu Domine”, which I find harder to swallow than “Gemini”. In any event, by the mid-19th century “Jiminy Christmas” and “Jiminy Cricket” had appeared, likely driven by the “J.C.” initials. And farmboy Walter Elias Disney probably heard “Jiminy Crickets” often enough growing up in the Midwest.