Here more about GitHub suffering from state-censorship: https://en.wikipedia.org/wiki/Censorship_of_GitHub
GitHub also censors any content that they deem stolen (such as the NSA Malware / EquationGroup releases) and content that they deem containing PII-data (such as the public LinkedIn crawl of people stating they work for ICE).