As the other guy said: we can’t. We still need oil to set up the infrastructure needed for a net-zero future, which means we’re still forced to use oil for a while longer.
Well we’re not quite where we can replace it, and won’t be for a while. Keep in mind that oil isn’t just burnt for transportation, we use it to make plastics too. And steel. And a ton of other shit.
How do you make steel for wind turbines without fossil fuels?
How do you build a nuclear power station without fossil fuels?
How do you replace all the petrol and diesel cars in the country with electric ones, without using fossil fuels?
Where is all the electricity going to come from?
It's complicated.