Note that the difference shrinks to a factor 2 if you consider per capita values.
That's still bad, no argument: France splits atoms, while Germany burns lignite, and peat aside, that's as bad as it gets as far as CO2 goes.
However, that's beside the point: The fact remains that Germany did move a significant amount of electricity generation from fossil fuels to renewables.