Learn

Although open source software can be freely viewed by anybody, using it -particularly as a part of proprietary software- can be a sensitive subject. Many open source developers prefer their projects only be used with appropriate author attribution and/or only by other open source software.

The “LICENSE” file in a repository is typically used to describe the licensing terms for the repository: restrictions for what circumstances it is allowed to be used.

Most developers choose to use industry standard licenses used by many other open source projects. ChooseALicense.com is a great resource that helps you compare licenses that have been read over and vetted by law. One commonly used license is the MIT license!

Instructions

In the workspace, we will demonstrate how to use the MIT license for your project.

  1. Click the I want it simple and permissive. option for the MIT license.
  2. Read through the MIT license, then copy the contents of the license.
  3. Head back to your repository in a new browser tab or window under the URL https://github.com/<username>/<repository>.
  4. Click the Add file button and then Create new file. Name the file LICENSE.md.
  5. Paste the contents of the MIT license from choosealicense.com/licenses/mit/ into the file, replacing year and name with this year and your name.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?