Yahweh was actually the old god of the harvest and wine I believe. Before the Jewish Pantheon shrunk to one god only. So Yahweh was similar to Dionysus at one point. There are still remnants and mentions of the other gods in the old testament, like Yahweh's wife Ashira and Baal who I think was an underworld god. Also funny that in the old testament, god talks about other gods as if they're real but weak or bad, doesn't deny they exist.
The version I heard he was a war god and killed the rest of his pantheon, then forbade his followers from even speaking of the other gods. This may have been modern fanfiction though, i've never gone back to figure out where I read that from.
I don't think that's from anything official, but it's a cool narrative to explain his ascension from polytheistic to monotheistic god! And it fits with how he acts in the bible.
Yahweh was a storm/raiding god fairly similar to, and later competing with and overtaking, Ba'al in the same domain but from the northwest (IIRC) semitic pantheon. The YouTube channel Esoterica has some great vids about it.
Many old religions were essentially created by mathematical scholars in the past who had similar ideas about shapes and symbolism. Some may disagree, but that's what I think anyway.