I think you may be mixing up git, which is a command line tool that’s still open source, AFAIK, with github that’s a closed source, git-based code hosting platform bought by Microsoft.
You can use other hosting services with git, and get an almost identical experience. Gitlab does it, as well as many others.
🤯