The whole point of git is to be decentralized so there is no reason for you to not have your current version available even when a remote is offline.
It's also trivial to have multiple remotes, I do in most of my repos. When one has issues I just push to the other instead of both.
How do people even on hacker news of all places conflate git with a code hosting platform all the time? Codeberg, GitHub or whatever are for tracking issues, running CI, hosting builds, and much more.
The idea that you shouldn't need a code hosting platform because git is decentralized is so out of place that it is genuinely puzzling how often it pops up.