Git itself is already distributed. For federated issues/pull requests, there is the ActivityPub extension ForgeFed. Forgejo ist actively working on implementing it.
There is a rudimentary git server with federation support as a POC, but it's not there yet. I'm Selfhosting Forgejo, it works really well, but AP integration isn't really in it yet.
Git is already distributed. Maybe there should be a way for forge software like GitLab or GitHub to fork stuff from each other via UI, but you can already do that by cloning and pushing the repo to somewhere else.
Both gitlab and gitea/forgejo has plans to add federation. But it's been planned for years now and I'm not sure how close we are to actually getting it.
Besides, git itself is federated as you create copies of repositories on your computer, just like anyone else. It's just not very "discoverable".
a platform that hosts the repos and issue trackers is different tool.
Security is the main problem here, you normally don't visit a random host to download the software from, just like you don't put money on a random unknown bank/stock. That's the reason I think it is not being federated yet, bc you want to stick with the trusted instance you pick anyway even if it is federated, but then there is not much difference for the host to host the platform without fediverse.