I personally believe that this kind of ban can not happen without this entities fighting back.
Honestly, betting on El Salvador to fight against the U.S. and EU wanting to ban Bitcoin-related projects from GitHub is one of the worse bets I've seen.
They don't have a lot to work with / to leverage. It's a tiny nation and their adoption of Bitcoin as legal tender is mostly symbolic; it shows what's possible, but it doesn't give Bitcoin more value, more legitimacy or protection from large states' attacks.
I agree it's not realistic. But El Salvador could take different approach such as promoting they welcome cryptocurrency developer on their country or you can host cryptocurrency source code/software on El Salvador server.