Isn't gender only relevant if there is someone to mate with? Like if God is a man then that implies that there is a woman?
From what I have read in the bible, God is considered a man relative to his people on earth who are collectively a woman. God marries the church as the church is his consort. God's gender then becomes a metaphorical statement.
Based on the opening of genesis, God might not have a gender at all, as it is both masculine and feminine in one. Adam was made in his image, and female, Eve, came out of Adam, implying that at one point Adam was both male and female. When male and female mate they become one, implying that Adam was originally both sexes in one and thus both genders in one. Or maybe it is more accurately to say that back then gender wasnt a concept. So if my theory is what the author intended, then God, who Adam is the image of, is both male and female, man and woman, hence why it has creative power within itself.