For basic repositories yes, Gitea [1], gitosis [2], gitolite [3], self hosted Gitlab, or just plain ol git over SSH. Otherwise no, not for all the work-flows and CI/CD integrations. Gitlab is not free and may or may not cover your integration use-cases but there would need to be more details in your question. I am most familiar with gitosis.
[1] - https://github.com/go-gitea/gitea
[2] - https://github.com/tv42/gitosis # some Linux repos contain this as a prebuilt package.
[3] - https://gitolite.com/gitolite/index.html#installsetup # Also contained in some Linux package managers
These are all self-hosted. Is there a non-self-hosted solution?
There are, but they would have access to your files. Self hosted is the only way I know of to prevent access and even that isn't perfect unless one fully controls the servers. VM's at VPS providers for example can be live cloned and live migrated to gather forensic data without leaving a trace for the renter of the VM.
If doing this I would strongly recommend also having a local non-encrypted weekly snapshot of your files in the event that nobody is able to decrypt your committed files.
[1] - https://github.com/AGWA/git-crypt