If you want others to use, distribute, modify, or contribute back to your project, you need to include an open source license. For example, someone cannot legally use any part of your GitHub project in their code, even if it’s public, unless you explicitly give them the right to do so .
Read moreIs it safe to store code on GitHub?
Conclusion. GitHub is as safe to use as you make it . If you are reckless with your repositories and don’t take care of your passwords, then you could fall prey to hackers. However, if you follow Git guidelines and make sure your repo settings are locked in tight, GitHub is perfectly secure and safe.
Read moreDoes GitHub sell your information?
We do not sell your personal information and we do not host advertising on GitHub. You can see a list of the service providers that access your information. We provide additional information specific to repository contents, public information, and Organizations on GitHub.
Read more