Microsoft and GitHub, the popular developer tools platform, have agreed to an acquisition and the deal could be announced as soon as Monday.

Acquiring GitHub Inc would be both a return to the company’s earliest roots and a sharp turnaround from where it was a decade ago.

A combination of both companies would make a lot of sense from a product and customer perspective, and it could provide stability for GitHub, which has found ways to monetize its popular products more challenging than expected and suffered a lot of turnover in its executive ranks.