Yeah, Git is already very decentralized by it's nature. You already have a full copy on every machine that's checked out the code, and any of them can easily add a new remote and push to it.
Plus we already have gitopia and sourceforge and gitea and codeberg.
Microsoft would have more trouble enclosing it's commons than Twitter.
But they will still face legal pressure to shut projects down.