Tomorrow it can be any country, it’s time to get out of Github and get a really free alternative that is not subjected to US’s proprietary laws.
There's has always been a solution. Host your own git server.
Well collaboration does not work easily with own git server, integration with many other tools and it is as good as doing private development.
Gitea is the closest thing to github. Obviously you'll need to point your team to the server to collaborate but you won't be dealing with nonsense government bans on github. Is just a solution not a perfect one, but a solution nevertheless.
There is already a bunch of countries and territories that are subject to such sanctions, not just Iran.
But the opposite also applies, it's GitHub that's blocked by other countries...
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.