How does one measure climate changes over thousands of years?
Lots of ways. Measuring tree rings for one, although that one is better for decades or hundreds of years. Lots of other surrogates for average temperature. See Scotese for other examples.
Tree rings, ice cores...