Is there a way to stop cloning or downloading from my public repositories? #23248
-
Well, I don’t want my project public repo to be used without my permission.So is there any way I can restrict people to use my repo without my permission.I want people to take my permission before using my work. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 8 replies
-
Hope this clears your doubt
😃 |
Beta Was this translation helpful? Give feedback.
-
No, there is no way to prevent people from cloning or downloading your repository if they have access to it. If you are worried about others using your code without your express permission, I would suggest adding a license. I’ve personally found https://choosealicense.com/ to be helpful when deciding which license to use. |
Beta Was this translation helpful? Give feedback.
-
@pn1019 It looks like you forgot to include some content on this reply. Did you edit your original post? Or did you mean to include more in this comment? |
Beta Was this translation helpful? Give feedback.
-
@50wliu suggested a great idea - Use a license. It protects you legally, and gives you control over your codebase… If you’re determined to make it non-downloadable, you can always make it a private repository, but then you lose the factor of open-source-iness. |
Beta Was this translation helpful? Give feedback.
-
@nadiajoyce I edited my original post. BDW, I got the query answered. |
Beta Was this translation helpful? Give feedback.
-
Anyone with the link can see what’s inside the directories and the structure, but can’t open or view the content of the files. |
Beta Was this translation helpful? Give feedback.
-
Is there any way for rejecting large clone requests? I want to reject clone request if repo size is more than 2GB |
Beta Was this translation helpful? Give feedback.
-
Could you demonstrate how this would look like in Github? I’m new to web hosting and I don’t want teachers taking all my own work for their classes. |
Beta Was this translation helpful? Give feedback.
-
Is this a feature request somewhere? Now that we have codespaces, it seems logical to be able to disable cloning, and only allow users to clone to a codespace. This would be absolutely ideal and perfect for contractors, and even employees at companies who want high levels of security. |
Beta Was this translation helpful? Give feedback.
No, there is no way to prevent people from cloning or downloading your repository if they have access to it. If you are worried about others using your code without your express permission, I would suggest adding a license. I’ve personally found https://choosealicense.com/ to be helpful when deciding which license to use.