Github is more than a UI and remote storage, it's a community and discovery tool for open source repos.
Federating to self-hosted means you are depending on google for discovery, which will never rank.
If you need a backup remote, just backup to Google Drive / iCloud. Private team collab? run a server.
While I understand the frustration with github, the prescription to self host seems like cutting off your nose.