From a philosophical point of view, disregarding the anthropomorphic gods of legend, I think the question of "god" in the broadest sense (at which point I'd prefer to drop the whole term "god" from our vocabulary completely) comes down to this:
Does a conscious observer emerge from a self-organizing reality or does a self-organizing reality emerge from a conscious observer?
Does a conscious observer emerge from a self-organizing reality or does a self-organizing reality emerge from a conscious observer?
He who loves God cannot endeavour that God should love him in return - Baruch Spinoza