Groan. Why do blogs keep asking this over and over? Why not just google the dozens of studies that have already been done?
Sherry Boschert has done a review of 60 of them. The short answer is that an electric car is about the same (in terms of emissions and CO2) as a gas car IF you are in a state that uses nothing but coal (there is only one), AND you count upstream emissions for electricity but not for gas.