There's plenty of git forges that aren't GitHub. Git itself has nothing to do with central servers and can theoretically be used in a completely decentralized manner.
At college some guys were self hosting a git server for a project but it went down. We resorted to a USB stick that acted as remote and was passed around. That was awesome to see, for about a day...