President Obama should get some credit for this because, let's be honest, he gets next to no credit for anything good that he's accomplished during his term.
GM has payed back all of their bailout money with interest and as noted, they are posting profits again now.
Some will call it strong-arming or a government takeover, but had Obama not forced the lame duck and greedy then CEO out of his position (and without a golden parachute, as for once, a rich businessman who has failed isn't rewarded), and put in place a chance for people who wanted to reinvent GM and bring forth better service and fuel economy, it seems reasonable that such a turnaround would not have happened.
So, he should get some credit, but credit also goes to the people at GM who stepped up and innovated as well as consumers who returned to the brand and bought American.