How to add Open Source License to your GitHub repository

When you first create a new repository in GitHub, you get a very handy drop down of Open Source Licenses options to add. This is really useful and saves you trying to find the standard copy somewhere.

If you don’t choose one when you create the repo, then there is a sneaky way to get that drop down back and easily add a standard license file later.

  1. At the root of the repository, create a new file and type in ‘license’ or ‘license.txt’ into the filename field and voila! you will see the ‘Want to use a template?’ drop down on the right.2017-01-12_19-32-21
  2. Select the license you prefer from the drop-down and the text will be copied to the new empty file.
  3. Commit the file.

After you have added the license you like this you will see a short cut link to it in the <>Code tab.

For full details see https://help.github.com/articles/adding-a-license-to-a-repository/

For help on choosing a license go to http://choosealicense.com/

Save

Save

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.