Prior to GitHub, everyone just hosted their own Git repositories. The nature of Git is pretty decentralised. And Linux kernel development still uses old-fashioned mailing lists for development co-ordination, rather than something like GitHub. I have heard before someone say the difference between Git and GitHub is similar to the difference between porn and Pornhub.
Prior to Discord, there was IRC.