Trees and shrubs grew in the Sahara between 120,000 and 45,000 years ago, suggesting wet spells may have helped early humans as they left Africa.