There are decentralized options in the works. Git is distributed source, but uses centralized servers. There are projects in IPFS and git for example the following:
Don't let government dictate who can communicate and share ideas.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.