That does not seem wise. China vs. GitHub, China will win.
If that were the case, I don't think they would have backed down and allowed access to Github again.
I sincerely doubt github is at all important to China.
On the other hand, the capitalists running the communist party might scoff at the idea of software that everyone is allowed to copy, because that offers no advantage to the unscrupulous. At least I'd imagine they would scoff at copyleft, just like Github does.
You can always fight, even if you believe you will lose.