(Reuters) – Microsoft Corp said on Monday it would buy privately held coding website GitHub Inc for $7.5 billion in an all-stock deal to expand its clout among software developers.