A double pole, double throw switch is used for this purpose but you have to wire it up correctly to reverse the polarity going to the linear actuator.
Step 1: Required materials
-DPDT rocker switch
-insulated disconnect terminals (female) x 6
-wire cutter/crimper/stripper tool
-a linear actuator or DC motor to control