Not sure if this was what they discouverwd
From link
"Today, the river lies a bit further away. Like a green ribbon bordered by fields, it winds its way from the Ethiopian Plateau through the northeastern Sahara to the wide delta in the north. We know, however, that the course of the river was further west at the time the pyramids were built, and the construction site was connected to the river via canals and a harbor.
However, the history of ancient Egypt actually begins much earlier when the Sahara was not yet a desert. About 15,000 to 5,000 years ago, people lived along rivers and lakes in a green Sahara because at that time the climate was much wetter. The Nile Valley, on the other hand, was probably less popular at that time, as it was a rather swampy area and there was a risk of being eaten by crocodiles or at least attacked by thirsty mosquitoes.