Prevent someone from stealing your code?!

Hi, I’m a bit of a novice when it comes to app development. This is probably a silly question but how do you prevent someone from stealing your code? This question applies to apps posted on Glitch as well as a public Github repository.

Let’s say I’ve written an app that does all these cool things and I want to one day take it to market. What’s to stop someone else from simply downloading the repo (or using it off Glitch) and calling it/making it their own?

Thanks

On Glitch, you can make your project private by clicking the lock symbol - see https://glitch.com/help/privateproject/. This means folks can’t see your project server-side code, but they can still access the app itself.

On GitHub, you can pay for private repos.

Gitlab has free private repositories tho

Where? Only with the student developer pack. I’m a student and am eligible, but not everybody will be able to get free private repos.

The student developer pack is for GitHub, Niko was referring to GitLab, see https://about.gitlab.com/pricing/#free-plan