General Motors says it will pay back the US and Canadian governments all the money it borrowed to get through its bankruptcy by June of this year.