DEV Community

Cover image for Add or Change a license on GitHub
Emanuele Bartolesi
Emanuele Bartolesi

Posted on

Add or Change a license on GitHub

In this post, we will walk you through the steps of adding or modifying the license for your project on GitHub. Whether you're just getting started on a new project, or looking to make changes to an existing one, this guide will help you understand how to properly license your work on GitHub. From choosing the right license to adding it to your repository, we'll cover everything you need to know to ensure your project is properly licensed on GitHub. So let's dive in!

From the website https://choosealicense.com/ choose the license suitable for you and for your project.
In the website you can find all the information to choose the right one.

choosealicense

From your repository on GitHub, create a new file with the "New File" button on the top bar in the repo.
Name it "LICENSE.md" or "LICENSE.txt" and choose the right license from the license picker.

You can also paste the license from the website https://choosealicense.com/.

If a license is present in your repo, delete it and repeat this procedure after the deletion.


Are you interested in learning GitHub but don't know where to start? Try my course on LinkedIn Learning: Learning GitHub.

LinkedIn Learning


Thanks for reading this post, I hope you found it interesting!

Feel free to follow me to get notified when new articles are out 🙂

Top comments (0)