If I contribute to a project on GitHub, do I retain rights to my contributions?
Yes, you generally retain rights to your contributions, but you grant the repository owner a license to use your contributions under the terms specified in the repository.