Making all cars electric would make a huge difference to global warming.
No, it wouldn't. I quote from one of the articles Katek referred to:
electric vehicles have a concerning supply chain. Cobalt, a key component of the lithium-ion batteries in electric cars, is linked to reports of child labour. The nickel used in those same batteries is toxic to extract from the ground. And there are environmental concerns and land use conflicts connected with lithium mining in countries like Tibet and Bolivia.
The elements used in battery production are finite and in limited supply. This makes it impossible to electrify all of the world’s transport with current battery technology. Meanwhile, there is still no environmentally safe way of recycling lithium-ion batteries.
While electric cars produce no exhaust, there is concern about fine particle emissions. Electric cars are often heavier than conventional cars, and heavier vehicles are often accompanied by higher levels of non-exhaust emissions. The large torque of electric vehicles further adds to the fine dust problem, as it causes greater tyre wear and dispersion of dust particles.
To which should be added that for the forseeable future the electricity used in these cars will be generated by gas-fired power plants and it has been estimated that the extra energy used in manufacturing these electric cars and their batteries is the equivalent of running a petrol engined car for 100,000 miles.
Electric cars are the solution in highly polluted areas because it moves the pollution elsewhere, but otherwise they are very nearly as polluting as ordinary cards.
This may change, but not in the immediate future.