Confederate Army of the Shenandoah Harpers Ferry, Virginia (modern day West Virginia). To organize and train the companies, Virginia state commander Robert E. Lee initially appointed Thomas J. Jackson to command the post. Jackson formed five regiments of infantry and a battery of artillery from the various companies, forming the basis of the Stonewall Brigade. On May 15, Joseph E. Johnston replaced Jackson as commander of Harpers Ferry and continued to receive additional regiments from throughout the Confederacy. He would eventually have four brigades of infantry and an independent regiment of cavalry, the 1st Virginia Cavalry commanded by J. E. B. Stuart. In mid-June, forces
Army of Northern Virginia previous name, the Confederate Army of the Potomac) from June 20 to July 20, 1861. His forces consisted of six brigades, with various militia and artillery from the former Department of Alexandria. During his command, Gen. Beauregard is noted for creating the battle flag of the army, which came to be the primary battle flag for all corps and forces under the Army of Northern Virginia. The flag was designed due to confusion during battle between the Confederate "Stars and Bars" flag and the flag of the United States. Beauregard continued commanding these troops as the new First Corps under