How to change the license for a project at Github?

Chris picture Chris · Nov 27, 2013 · Viewed 50.9k times · Source

I have created a simple list API in C and I want to release it via Github.

Is there any way to change the license after the creation of the repository?

Answer

Pierre Arlaud picture Pierre Arlaud · Nov 27, 2013

If you release it with a license, you allow people to use it as the licence describes. You can't just say "no I changed my mind I don't want it to be under GPL". Of course your future release may be in another license (GPL forces other people's modified versions to be GPL, but you, as the creator, may release new versions of your work under a new license).

Amendment

Websites like choosealicense.com may help you to choose a suitable license. The license picker provides some templates that can be committed to your repository; for an existing repository you can bring it back this way:

  • browse to your repository at GitHub.com
  • create a new file by pressing the blue + icon (updated to: New File button)
  • name it LICENSE.md or LICENSE.txt to show up the license picker again
  • choose a template