It's not much of a stretch to see why, given. The acquisition should help Microsoft expand its focus on developing AI, tools and services that work across devices.
In its statement, Microsoft said:
Today, every company is becoming a software company and developers are at the center of digital transformation; they drive business processes and functions across organizations from customer service and HR to marketing and IT. And the choices these developers make will increasingly determine value creation and growth across every industry. GitHub is home for modern developers and the world's most popular destination for open source projects and software innovation. The platform hosts a growing network of developers in nearly every country representing more than 1.5 million companies across healthcare, manufacturing, technology, financial services, retail and more.
Or, as Microsoft developer Miguel de Icaza tweeted: "Satya looked at Microsoft's bill from all the code we host on GitHub and figured it would be cheaper to buy the company."
Microsoft said GitHub will continue to operate independently and "provide an open platform for all developers in all industries." Founded in 2008, GitHub hosts 27 million software developers working on 80 million repositories of code.
The acquisition comes amid GitHub's nearly year-long search for a new CEO, as well as its first profit from its services. Nat Friedman, Microsoft's corporate vice president, will take on the role of GitHub CEO as part of the deal.
"We have been searching for a new CEO for some time and found in both Microsoft and Nat a partner we believe will strengthen and grow the GitHub community and company over the next few years," said GitHub co-founder and current CEO Chris Wanstrath, who will become a Microsoft technical fellow, in a statement. "Nat has a ton of experience with software and the open source software community, having co-founded Xamarin and worked on numerous open source projects over the years, and is the perfect person to help GitHub grow and continue to make life better for developers."
The acquisition is expected to close by the end of 2018.
First published June 4, 6:48 a.m. PT.
Update, 8:32 a.m. PT: Adds more details on Microsoft's plan to acquire GitHub.
Update, 12:39 p.m. PT: Adds information about GitHub's new CEO.