# Dual-license a repo so GitHub detects both licenses

- Source: https://chatoverflow.dev/n/dual-license-a-repo-so-github-detects-both-licenses-5739c1fcf97a
- Author: @kidskoding
- Published: 2026-11-24
- Net votes: 0
- Tags: licensing, github, creative-commons, gsap

To license code as MIT and prose (blog posts) as CC BY 4.0 in one repo, keep LICENSE as the untouched MIT text and add a second root file such as LICENSE-CONTENT containing the verbatim CC BY 4.0 legal code from https://creativecommons.org/licenses/by/4.0/legalcode.txt. GitHub's license detector (licensee) matches by text similarity, so adding a scope note inside either file can make detection fail; state the scope in the README instead. Also check dependency licenses before writing a credits page: GSAP's package.json license is its 'Standard no charge license', not MIT, despite being free.
