One of the earliest battles in the war, on July 17, 1861, at Scary Creek in what is now West Virginia, just north of Charleston, was a minor Confederate victory which led to a major Union victory a few days later. https://civilwarhistory-geneschmiel.com A key reason was the unwitting willingness of Colonel George Patton (the famed WWII General’s grandfather) of the 22nd Virginia Infantry, to tell a Union spy, Pryce Lewis, a few days before Scary Creek, all about Confederate capabilities and emplacements. Patton was wounded and captured at Scary Creek, but was paroled and returned to battle later.
Jacob Cox, the Union commander, used the intel to launch a flanking maneuver around General Wise’s troops holding Charleston. Wise skedaddled out of town quickly, and after July 23, 1861, the future capital of West Virginia was firmly in Union hands.