Adding a license to your GitHub repository is essential if you want others to use, modify, or contribute to your project.
It sets clear guidelines on how your work can be shared and used.
In this step-by-step guide, let’s check out how to easily add a license to your repository, complete with a demo to help you along the way.
Steps to follow:
1. Click the 'Add file' button and select 'Create new file' from the dropdown menu.
2. In the file name field, type 'LICENSE'. GitHub will recognize it as a license file and prompt you to select a template. Click the 'Choose a license template' button.
3. Select the license that best suits your project.
4. Click 'Review and submit' to automatically fill in the license text.
5. Review the generated license text, then click 'Commit changes' to save it.
6. Add a commit message, then click the 'Commit changes' button to create the 'LICENSE' file.
7. The 'LICENSE' file has been successfully created.
That's It!
You’ve successfully added a license to your GitHub repository.
Now that you’ve added a license to your GitHub repository, your project is ready to be shared and collaborated on with clear rules in place.
Having a license not only protects your work but also encourages contributions from others in the open-source community.
Still have questions?
Send an email to archana@leadwalnut.com, OR
Book a FREE consultation with an expert developer here.