And nothing is stopping you from renting a VPS from a provider based in that country and running gitlab or something.
The worst part is sharing around a sketchy URL but, that just comes with the territory when you're in the DMCA dodging parts of the internet.
Renting a VPS from a country that genuinely doesn't is pretty risky for numerous reasons, least of all international sanctions.
Looking for similar UX to https://archive.softwareheritage.org/save/ (which archives an source control repo on demand from a url, but is still a single point of failure)
Private keys and private endpoints is all we need
>Radicle is an open source, peer-to-peer code collaboration stack built on Git. Unlike centralized code hosting platforms, there is no single entity controlling the network. Repositories are replicated across peers in a decentralized manner, and users are in full control of their data and workflow.