A galvanic cell works by having two electrochemical equilibriums which have a different potential.
If you (theoretically) had a galvanic cell with two electrodes which have almost identical potentials and are sensitive to heat (at the anode the oxidation is exothermic and at the cathode the reduction is), connected the two half cells with a diode contrary to the normal current and heated the whole thing up, shouldn't it be possible to reverse the current and recharge the cell?
Please excuse language mistakes I might have made; I am not a native English speaker and therefore don't know all technical terms in English.