On February 27, Maj. Gen. Philip Sheridan with two cavalry divisions rode from Winchester up the Shenandoah Valley to Staunton. Turning east, the Federals encountered the last remnant of Lt. Gen. Jubal Early's Valley army at Waynesboro on March 2. After a brief stand-off, a Federal attack rolled up Early's right flank and scattered his small force. More than 1,500 Confederates surrendered. Early and a few of his staff evaded capture. Sheridan crossed the Blue Ridge to Charlottesville and then raided south, destroying the James River Canal locks near Goochland Court House. He joined forces with the Army of the Potomac near Petersburg on March 26 for the opening of the Appomattox Campaign.