If you forgot to add a license to a repository then you can add simply by:
-
Click
Create new file
-
Write the name of the file as
License
,License.txt
orLicense.md
As soon as you type license, there will be a button called "Choose license template" On the right side. -
Click
Choose license template
. -
Choose license type.
-
Click
Review and submit
. -
Click
Propose and submit
-
Merge pull request. A pull request will be created, which you merge to your repository to add the license.