Home > Software engineering >  Github - how to add several discoverable licenses?
Github - how to add several discoverable licenses?

Time:10-25

I could not find answer by googling. I want to add several free licenses for them to be easily seen on project page.

https://github.blog/changelog/2022-05-26-easily-discover-and-navigate-to-multiple-licenses-in-repositories/ seems to suggest a project can have at least two licenses as its "property".

https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository

Add a file named LICENSE(.md)

I can imagine I will add LICENSE and then LICENSE.md and it will add two to my project. Is it really the way? And two is max?

I can have LICENSE file mentioning as many as I want, but I want my project to be better visible via Github search. Is it worth the effort, BTW? TIA

CodePudding user response:

I haven't tried this, but from what I gather you should be able to add a LICENSE-XXX(.md) where XXX is the abbreviation of the license type you want, so LICENSE-MIT, LICENSE-GPL. Each file will be detected as a licensen.

  • Related