General Motors and the United Auto Workers (UAW) have reached a tentative four-year agreement.