When I created a GitHub project I chose None.
How can I now add a GPL license to my already added project?
When I created a GitHub project I chose None.
How can I now add a GPL license to my already added project?
2. a) Type 'LICENSE', 'LICENSE.md' or 'LICENSE.txt' as the new file's file name. b) The 'Want to use a new template?' dialog will appear.
The accepted answer is almost there, but confused me, because it said 'click the blue plus' - the interface may have changed - and the image is the same as the OP's.
There is an easier way to get to the 'Add License' wizard:
Insights tabCommunity on the left sideAdd on the line wich says LicenseFor some reason this is not even mentioned in the docs at github.
I just wanted to add another valid alternative using https://choosealicense.com made by Github and many more.
ChooseALicense.com aims to provide accurate, non-judgmental, and understandable information about popular open source licenses in order to help people make informed decisions about the projects they start, maintain, contribute to, and use.
After you have picked your license there are two alternative ways to transfer your new license.
Copy license text to clipboard and paste into your LICENSE file anywhere you want. How to add license into Github is answered by others.Enter GitHub repository url and hit Enter (Bellow the button). You will be asked for permission to access your Github repository.Note!
Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders