A particular project I'm working on will be on a private Git server until I complete and open it as a package. Even after that, I might keep the development closed and release tarballs only (aka Catherdral Model).
All code I write is also AI-Free.
It won't be possible to trust in people for a long time, it seems.
My code will never be publicly available. That's a key trade secret of our business. When investors and others tell us that someone else could build it, I let them know that they could build their own, similar version, but it wouldn't be what we have.
We've verified that by having friends and family, some of the best coders that we know - Stanford, MIT, and other CS alum, as well as top FAANG programmers - try to reproduce it. It's always something done in their own style that doesn't do the job as it needs to be done (they work ok, but they all miss some key crucial parts of why our system succeeds at what it does).
GitHub is good for those looking for a job or to share their projects openly. I wouldn't even trust a private repo. Everything is either on systems and servers that we have control over or in my head. As we grow and scale, we have a roadmap for how to keep control over those trade secrets until it's time to pass off the company (if we do). At that point, I'm confident that whoever takes over will realize that this will be like the Coca Cola recipe, or any other trade secret which could be reproduced but not necessarily in the same way. (Knowing the history of that recipe and what others have created that tastes identical, it's more apocryphal and maybe not a perfect example, but you get the idea).
Anything controlled by another company is something out of your hands. Pick and choose wisely where you keep your stuff.