With the Union forces spread out over such a wide front, General Hood launched an attack against the Union right at Peachtree Creek on July 20, 1864. The Confederate advance was repulsed at the Battle of Peach Tree Creek. The Confederates then launched a second attack on July 22, this time against the Union left, east of Atlanta near the Augusta railroad. The Confederates were again repulsed with heavy losses at the Battle of Atlanta. During the Battle of Atlanta Union General James B. McPherson and Confederate General William H. T. Walker were killed. General Sherman had now cut two of the four rail lines leading into Atlanta.