How to add license to an existing GitHub project

When I created a GitHub project I chose None.

How can I now add a GPL license to my already added project?

screenshot


Solution 1:

  1. In your repository, click 'Create new file'

step 0


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.

step 1


  1. Choose your preferred license.

step 2

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.

Solution 2:

  1. Go to your repository
  2. Add a new file by clicking the blue plus icon
  3. Type the file name as License.txt or License.md after which a license picker will show up. Then you can choose the type of license.