That wouldn't be the case for Git though. With git every repository is authoritative. Github is merely were most people put their repos to be discovered and use it as a central source of truth (which is totally fine for what most people do)
You can also use a USB stick (did that in Uni when wifi was failing, it's quite fun)
You also don't need full decentralization as Mastodon shows. You only need enough that it becomes hard to single out a user and block only them or a group of users. In the fediverse there is basically no universally blocked instance, every instance federate with atleast some others.