How to add license to an existing GitHub project
- Go to your repository
- Click on "Create new file" Button
- Type the file name as License.txt or License.md in the input box next to your repository name, a drop down button appears towards right side
- Choose the type of license of your choice
- Click "Commit new file" button at the bottom (Green button)
There is an easier way to get to the 'Add License' wizard:
- Go to your repository's
Insights
tab - Click
Community
on the left side - On the right side, click
Add
on the line wich saysLicense
For some reason this is not even mentioned in the docs at github.
- Go to your repository
- Add a new file by clicking the blue plus icon
- 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.
- In your repository, click 'Create new file'
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.
- Choose your preferred license.
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.