George Armstrong Custer was appointed brigadier general on June 29, 1863, and assigned as commander of the Michigan brigade which he led as the Union cavalry entered Hanover on the morning of June 30, 1863. Pastor Zieber stated, "During the charge of the Federal troops driving the enemy out of town, I saw ... men led by General Custer come dashing down Abbotstown Street. They met a squad of the enemy right in front of us, and a sharp encounter took place? [We] had lost all consciousness of danger and whenever we saw our troops gaining any advantage over the enemy, we applauded them."
Custer's troops helped push the Confederate cavalry of J.E.B. Stuart out of Hanover and impeded his linking with Jubal Early's Confederate infantry, which was redeploying from York towards Gettysburg. This led to Stuart not arriving at Gettysburg until late on July 2 the Battle of Hanover, then, was an early important action in the Gettysburg campaign which favored the Union.
General Custer also took a leading part in the great cavalry fight on the third day of the Battle of Gettysburg, where he won distinction for gallantry.