How to Add License to GitHub Repo | Scribe

    How to Add License to GitHub Repo

    • |
    • 10 steps |
    • 2 minutes
      1
      To get started, navigate to the repository to which you want to add the license.
      2
      Select "Add file" to the right of this page.
      3
      From the dropdown menu that appears, click "Create new file."
      4
      Name your file [LICENSE.md](http://LICENSE.md)
      5
      Next, select "Choose a license template" to pick from premade templates.
      6
      While GitHub has a ton of license templates for you, we will select GNU General Public License for this project.
      7
      Read over the documentation, and select Review and submit when you are done.
      8
      You will need to commit the files to your repo.
      9
      You can add the file to your main branch or create a new branch entirely. Either way, give your commit an appropriate message and description.
      10
      Next, hit propose new file. If you use the main branch, you will hit commit new file instead. Both options achieve the same result. Keep in mind you will have to approve the pull request if you choose to make a new branch.