What we really need would be a federated code hosting platform. Everybody could run a own instance or join one he/she can trust in but interact with projects that are hosted on other instances without need for an extra account there. All tools we would need to build something like this are already there. Git is made for distributed code management and the rest could be done with ActivityPub.