What happens to light climbing out of a region of strong gravity (a gravitational potential well)?

Answer

It is redshifted (loses energy)

General Relativity dictates that when light climbs out of a region of strong gravity, it loses energy, which manifests as a gravitational redshift, also known as the Einstein shift.

What happens to light climbing out of a region of strong gravity (a gravitational potential well)?
astronomyuniversecosmologyblue shiftred shift