The following instructions will guide you step-by-step on how to add an open-source license to a GitHub repository.

  1. Log in to your GitHub account. Go to your repository. Click on the LICENSE link:

    GitHub repository - Quick setup section - LICENSE link highlighted

  2. The License window opens. Paste your open-source license in the field. Or, click the Choose a license template tab:

    GitHub repository - LICENSE section - Add your license text and click the Choose a license template tab

  3. The new window to choose a license to add to your project will open:

    GitHub repository - LICENSE section - Choose a license template options

  4. For example purposes, we selected Apache License 2.0. The preview of the license template with the permissions, limitations, and conditions appear. You can edit the template if needed. When done, click the Review and Submit button on the right side:

    GitHub repository - LICENSE section - Apache 2.0 selected - Preview of the template shows - Review and Submit

  5. Your license is ready. Click Commit changes (at the top right):

    GitHub repository - LICENSE section - Apache 2.0 selected - Ready - Commit changes

  6. The new window opens. You can add/edit a message and add an extended description if needed. Click Commit changes again:

    GitHub repository - LICENSE section - Apache 2.0 selected - Ready - Commit changes

  7. The new LICENSE file is created:

    GitHub repository - LICENSE - File - created

  8. You can see the preview on your repository:

    GitHub repository - LICENSE - File - preview

Privacy Policy Generator
Comprehensive compliance starts with a Privacy Policy.

Comply with the law with our agreements, policies, and consent banners. Everything is included.

Generate Privacy Policy