>>514870218
>They seem to have been different Gods
Yahweh and Elohim were but two different designations for one and the same deity.
Biblical scholars, however, had long ago realized that the Old Testament preserves more than one tradition, and that, among other things, these different traditions can be recognized by the name applied to what one usually considers as having been "God."
One of these traditions referred to the deity as Elohim, another tradition referred to him as Yahweh.
Thus Biblical scholars refer to these different versions, among others, as the Elohist tradition on the one hand, and the Yahwist tradition on the other. Originally, these different traditions belonged to different peoples who had passed on their traditions by word of mouth, without change, from one generation to the next.
But, as happened so often in the past, these different peoples merged to become one nation even though each faction was persistent in retaining its particular version of what they believed to have transpired in the past.
At an even later time, when they decided to put their history into writing, these various traditions were incorporated as a unified, but not seamless, whole. And that, to put it simply, is what the Old Testament, as it exists today, consists of.