Geologists know the past temperature of the planet based on rock and fossil evidence. Why do you think it is difficult to determine what has caused climate change in the distant past?
Answer: Greenhouse gases affect how much of the Sun's energy the Earth loses back to space. Predicting global temperature change is hard, even though the principle sounds easy. In simple terms, energy reaches Earth from the Sun.