Hosted git. The server side code for Gitlab is open source, and you can self-host. You can migrate from Github, and you can even login to Gitlab with your github account.
This is more common to see than Gitlab, however their server side code is NOT Open Source, while they advocate for Open Source, their code itself isn't. Another consideration is Github is not owned by Microsoft. https://github.com