The story
Possibly a minced oath from phrases beginning with holy (e.g. holy cow) and a rhyme with fuck it. Alternatively, possibly a punning allusion to a broken bucket being holey (having a hole).
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: An exclamation of surprise or astonishment. Full definition →
Possibly a minced oath from phrases beginning with holy (e.g. holy cow) and a rhyme with fuck it. Alternatively, possibly a punning allusion to a broken bucket being holey (having a hole).
Etymology from Wiktionary, CC BY-SA 4.0.