The Battle of Gettysburg may be a strange subject for science fiction genre television. But there were at least three classic TV series that had episodes set during the iconic battle in the small Pennsylvania town from June1 to June 1, 1863.
Some spoilers follow.
Still Valley: The Twilight Zone
In Still Valley, a Confederate scout named Sgt. Joseph Paradine rides into a nearby town in advance of the Confederate Army to find all of its inhabitants and a number of Union troops frozen in place. He meets an old man named Teal who claims to have a book that can cast a spell that would render the entire Union Army immobile, thus handing victory in the Civil War to the Confederates. He gives the book to Paradine to cast the necessary incantations. However there is a part in it where the spell caster has to renounce God. Paradine and his Confederate comrades decide that win or lose the battle the next day, they will not pay that price. The town, of course, is Gettysburg.
Gettysburg: The Outer Limits, Modern Version
In Gettysburg two teenage Civil War re-enactors, one in Union blue the other in Confederate gray, are transported back in time to the actual battle to be taught a lesson that no war has glory in it. It seems that one of the re-enactors is destined to shoot the president of the United States for the cause of the Confederacy and its flag. The episode aired at a time when a great deal of controversy existed because of the display of the Confederate flag which southerners claimed to be about their heritage and some liberal activists claimed to have been about racism. After some adventures in which the two teenagers learn their lesson, an accident with the time machine sends a Confederate colonel to July, 2013 to the site of a ceremony in which the Confederate flag is to be buried along with the hate it represents. The Confederate officer, mistaking a Lincoln re-enactor for the real president, attempts to shoot him. He apparently may have shot the actual president in 2013, however.
The Death Merchant: The Time Tunnel
The Death Merchant has Tony and Doug, two travelers lost in time, at the Battle of Gettysburg, with Tony having lost his memory and thinking he’s a Confederate soldier and Doug attempting to help him and also stop a man named Michaels who is selling a large cache of gun powder. Michaels turns out to be the Italian Renaissance writer and political philosopher Machiavelli, who for some reason is in 19th Century America trying to make Gettysburg bloodier than it was in real history. Why he would do this is not entirely clear.