git - the SCM - is opensource.
I believe that M$ bought github.com. It uses git but git (the tool) is still opensource.
“I believe that M$ bought github.com.”
Arg!!
I use MBED which in turn uses Github. I think the MBED projects are stored on Github but I’ve never directly used Github.