 In 1858 the Gettysburg Railroad opened a railroad link westward to Gettysburg.The Hanover and York Railroad completed a rail line to York in 1876.During the American Civil War, the Battle of Hanover was fought on June 30, 1863.