In the first case MS is giving part of Github itself away for free.