General Motors and the United Auto Workers union have reached a tentative contract agreement that could end a six-week-old strike against Detroit automakers, two people briefed on the deal said.