Check out this excellent diagram that maps how world religions have changed and developed, from the beginning of history to now
If it all looks a bit like a tech tree from Civilization V, that’s OK—religions develop over time as groups react to their changing environment and circumstances, as well as develop more scientific understanding of the world and their place in it. Religions are ways that large groups of people mythologize and give meaning to their life experience, and maintain a group narrative that can be incredibly powerful, particularly in times of adversity where blind faith can sometimes be the best possible reaction to difficult circumstances.
Some theorists—particularly the Integral school that stems from Sri Aurobindo, Jean Gebser and Ken Wilber—have posited that religions (and all human knowledge) advance in an upward spiral of development. While elegant, the theory has the downside of offending everybody whose religion is not at the top of the pile. (For more, see The Essential Ken Wilber.)
You can click on the image below to expand it.