You don't.
We are the public. If GitHub did an annual funding drive a-la wikipedia it would definitely keep them afloat.
A-propos, would you be OK with Microsoft buying Wikipedia?
Archive.org?
As for Wikipedia, I feel similarly, except Wikimedia runs a fairly tight ship, and lacking a corporate product offering (or market) means I’m much more happy to donate. They don’t run in the deep red intentionally, which is the key difference. Also, GitHub is extremely easily replaceable (and we -need- diversity in code hosting for FOSS), whereas Wikipedia is not quite so replaceable, and diversity in open encyclopedia platforms doesn’t help anyone...
GitHub was a startup, and that comes with certain expectations and constraints on their future. But, for some crazy reason, avoiding GitHub wasn't a particularly popular position to take a week ago. People who understood the business realities of Facebook dunked on normal people for getting duped, then went around and complained that everyone should just submit to network effects and get on github.
hardly worth it for the investors who want to see a 10x or even 100x ROI for their initial private funding rounds.
Public utility should be started using public funds, for the public good. Private companies can never become this.
None.
It could be run as a public utility or it could be turned into something federated to absorb the bulk of the hosting costs.