The earliest gods which can be directly attested comes from those who developed writing first. Since the ancient Mesopotamian people were the first to develop writing, they were also the first to write down their gods. Check out this source for a list of some of their gods. Before this we enter the realm of prehistory which some may say is outside the scope of this subreddit.