Meanwhile there is a federated git as a reference implementation called Forgefed.[2]
1. https://gitlab.com/gitlab-org/gitlab/-/issues/6468
2. https://forgefed.peers.community/
https://fossil-scm.org/
HN post: https://news.ycombinator.com/item?id=9625840