How to change the license for a project at Github?
70,998
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
orLICENSE.txt
to show up the license picker again - choose a template
Related videos on Youtube
Author by
Chris
Updated on January 20, 2022Comments
-
Chris over 2 years
I have created a simple list
API
inC
and I want to release it viaGithub
.Is there any way to change the license after the creation of the repository?
-
Wooble over 10 yearsThis question appears to be off-topic because it is about relicensing, not programming.
-
Chris over 10 years@Wooble: Isn't licensing a part of programming?
-
Chris over 10 years@ArlaudAgbePierre: that's why I wrote it as a sidenote. The main question was about Github and whether I can change a license after the creation of the repo.
-
Pierre Arlaud over 10 years@Chris: GitHub does not have anything to say about this, this is the law. Once it's been released with a license you can't change it. This isn't a programming issue but a law issue.
-
Chris over 10 years@ArlaudAgbePierre: Ok then, thanks for pointing this out! About the help of choosing a license, I've seen this, that's why I said GPL or MIT. I think that MIT license is better for me, as it is a simple List and Queue C API that I might extend in time.
-
Pierre Arlaud over 10 years@Chris It seems to me you've made up your mind already. Then why ask? Use the GPL if you want anybody using your project to use the GPL as well.
-
Chris over 10 years@ArlaudAgbePierre: As it is the first time I am releasing software, I want to be sure that I am releasing it with the correct license for its use. Also, I am a newbie with licensing as you've realised and without asking question you're getting nowhere. Thank you for the clarification about GPL, with this, I am reassured that MIT license is best for me.
-
Celeritas almost 8 years@Wooble then that's a flaw with SE/SO.
-
Jan Hackenberg over 5 years@Pierre Arlaud I was researching differently. If the topic creator is the license holder he has imo defenitely the right to change. He cannot yet force already cloned repos with the old license to change. But every new clone adapts to the new license. Not 100% sure though, would be nice to have here more resources.
-
Pierre Arlaud over 5 years@JanHackenberg No it would not, this is a legal issue not a programming one.
-
Jan Hackenberg over 5 years@Pierre Arlaud Of course it is a legal issue. Its your special right as license holder to change license, also after distribution. What you cannot take away later is already distributed copies under old and different license. So as soon as you changed license, you will have your program distributed under 2 different licenses.
-
Pierre Arlaud over 5 years@JanHackenberg I was answering "would be nice to have here more resources". And I'm saying, no, this topic is closed as off-topics, legal issues do not have a place in this specific network.
-
Jan Hackenberg over 5 years@Pierre Arlaud Okay, so you refer to the topic itself, not my comment. I undestood it in a different way. Thanks for updating me, I will respect the closed tag now. Have a good day.
-
Dmitry Grigoryev almost 5 yearsLegal discussions aside, the answer is "Yes": you can re-license your repo by removing the LICENSE file and creating a new one. Github will recognize the file name and offer you license templates as when you pick the license the first time. I just did it on my repo.
-
Peter Gloor almost 4 yearsI cant see what wrong with this topic. The answer is perfect and still valid May 2020.
-
Kanagavelu Sugumar over 2 yearsAdd LICENSE.md file to your repo by copying content from here gist.github.com/nicolasdao/…
-
-
Wooble over 10 yearsAs long as no external GPL code is used in the project, the author isn't required to release modified versions under the GPL.
-
Pierre Arlaud over 10 years@Wooble you're right, it somehow came out wrong when I said it. But even though the author remains the author of the software, it can't just "remove" the GPL license out of thin air.
-
jthill over 10 yearsActually, yes, you can. If others have a GPL'd version, you can't retract that, but you can certainly stop distributing it yourself in favor of another version licensed as you want now.
-
Pierre Arlaud over 10 years@jthill "Of course your future release may be in another licence" (or without any). The point is, a former GPL release cannot be cancelled, everyone who has downloaded the code when it was released with GPL at the time can still use it as such. And it's for the best!
-
jthill over 10 yearsHe's asking about the license in his repo. You're talking about the license in other peoples' copies, not at all the same thing, and not addressing the question he's asking. Why not just say up front "yes, you can change the license in your repo, but of course you can't revoke any license others may have already received"?
-
Pierre Arlaud over 10 years+1 for rephrasing what I couldn't. The whole point of his post however is to get the license right the first time, so it was worse mentioning that the revokation wasn't allowed.
-
Chris over 10 years@jthill: This was whatI wanted to read as an answer. It is common sense that you can't release something and then change the license.
-
Pierre Arlaud over 10 yearsI meant worth* mentioning of course.
-
Norbert S about 8 yearsThis was extremely helpful. I spent hours trying to find out WHERE on Github I can choose the license. Typing license.txt into this field was the answer. However, the NASA Open Source Agreement is not among the templates. My first release was under this license (somehow I must have managed that), but later releases inadvertently reverted to "Other (Open)". How can I pick the NASA license again, at least for the next release?
-
apadana about 5 years@Wooble, you said: "As long as no external GPL code is used in the project, the author isn't required to release modified versions under the GPL." What if I've linked the code to a GPL library? Can I change the license if I stop using that GPL library?
-
Pierre Arlaud about 5 years@Arham that's a question for the law network
-
Eric Dand about 2 yearsThis answer explains well how licensing works, but it does not answer the original question of how to get the GitHub interface to change the license listed on a project.