You're describing a private repo. GitHub/GitLab/... have that.
I think this pattern was common for things like Ansible and Terraform configs and dotfiles.
My point is, don't use an end-to-end encryption scheme if you want more than the ends decrypting it.
Don't trust private repos to be private!