never fully recovered from the substantial losses incurred during the three-day battle in southern Pennsylvania. Civil War Historian Shelby Foote once stated, "Gettysburg was the price the South paid for having Robert E. Lee as commander." Ulysses S. Grant and the Union offensive In 1864 the new Union general-in-chief, Lt. Gen. Ulysses S. Grant, sought to use his large advantages in manpower and material resources to destroy Lee's army by attrition, pinning Lee against his capital of Richmond. Lee successfully stopped each attack, but Grant with his superior numbers kept pushing each time a bit farther to the southeast. These battles in the Overland Campaign included the Wilderness, Spotsylvania Court House and Cold Harbor. Grant eventually was able to stealthily move his army across the James River. After stopping a Union attempt to capture Petersburg, Virginia, a vital railroad link supplying Richmond, Lee's men built elaborate trenches and were besieged in Petersburg, a development which presaged the trench warfare of World War I. Lee attempted to break the stalemate by sending Jubal A. Early on a raid through the Shenandoah Valley to Washington, D.C., but Early was defeated early on by the superior forces of Philip Sheridan. The Siege of Petersburg lasted from June 1864 until March 1865, with Lee's outnumbered and poorly supplied army shrinking daily because of desertions by disheartened Confederates. General in Chief On February 6, 1865, Lee was appointed General in Chief of the Armies of the Confederate States. As the South ran out of manpower the issue of arming the slaves became paramount. Lee explained, "We should employ them without delay ... [along with] gradual and general emancipation". The first units were in training as the war ended. As the Confederate army was devastated by casualties, disease and desertion, the Union attack on Petersburg succeeded on April 2, 1865. Lee abandoned Richmond and retreated west. Lee then made an attempt to escape to the southwest and join up with Joseph E. Johnston's Army of Tennessee in North Carolina. However, his forces were soon surrounded and he surrendered them to Grant on April 9, 1865, at the Battle of Appomattox Court House. Other Confederate armies followed suit and the war ended. The day after his surrender, Lee issued his Farewell Address to his army. Lee resisted calls by some officers to reject surrender and allow small units to melt away into the mountains, setting up a