Skip to content
Discussion options

You must be logged in to vote

Honestly, there’s no GitHub switch that lets you say “people can use my repo but can’t get the source code.” If the repository is public, GitHub is basically designed around the idea that everything in it can be cloned, downloaded, or viewed. Even if you try to hide things in releases, the source code itself is still fully accessible from the repo.

What people sometimes do in your situation is change the approach a bit rather than trying to “lock” GitHub. For example, instead of giving users your actual source code, you keep the repository private and only distribute compiled builds through GitHub Releases or another platform. That way, users download and run your app, but they never see …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Tevive

This comment was marked as low quality.

@moriletech000
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question Ask and answer questions about GitHub features and usage Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
3 participants