I'm sorry you have to deal with this. Github is a symbol for open source, which is about bringing people together across boundaries. This nationality-based discrimination is the opposite of that, adding insult to injury. I hope GitHub does a git revert and rolls back these changes. Sending support to the repo from the US!
GitHub is a symbol for Microsoft buying developers 🙈
This. I've always considered github to be the necessary evil, and I registered because I wanted to contribute to one project hosted there. That was years before Microsoft bought them out. I mirror all of my repositories to other places to ensure I'll keep them even if Microsoft decides to ban me. I put all places where I host my code on my CV just to be safe.
If you care about your code, make sure you host it on multiple sites to have backups to fall on. This is backup 101 stuff, you want to have multiple redundant offline backups, so that you won't lose anything if some place burns down or something else happens to it. It doesn't matter whether it's a screw up on the part of some operator, or politics in the country where the hosting provider is based in.
I am a strong advocate of the 3-2-1 Rule of Backups, which is: At least three (3) backup copies total, in at least two (2) different formats (hard drive, optical media, thumb drive, etc.) with at least one (1) backup being stored off-premises, whatever that means for your specific situation (cloud storage/remote repo, at work/home/school, safety deposit box, etc.)
3-2-1 Rule of Backups
As far as I am concerned, if it is not backed up 3-2-1 it might as well not exist at all, because when it's gone, it's gone.
The at least's in that formula strongly encourages doing more than the minimum, especially in whatever area(s) you feel might be the greatest risk, whether that be location, form, or just sheer number of copies, or all of the above.
Just make sure you develop a naming/version numbering system that allows you to quickly identify the latest copy of the resource, so you may be sure your backups are the latest versions (along with normal version control operations, in order to be able to restore some prior versions as needed as well.)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.