Confederate General Braxton Bragg had been driven from the city by union forces earlier in the month by the Union 's Major General William Rosecrans , and Bragg then became determined to re-take the city .