What would happen to bitcoin if all bitcoin-related stuff on GitHub got banned?
Someone would create "HitGub" what would be a copy of GitHub, set it up in eg Malta and we would go on as usual.
That exists already.
Just to name a few. It's also easy to set up your very own Git server.
Here's a guide for anyone interested, directly from the actual Linux Foundation's blog: