Germany has pledged for the first time to phase out fossil fuels, setting a target of 2045 for the phaseout, according to The Guardian's report.