Have you ever wondered how some people add a license to their GitHub repository to declaire the right of their code? Today I will tell you the trick.
To start with, go to the main page of your GitHub repository, click on Create new file.
Type LICENCE or LISENCE in the text box and then Choose a license template will appear, click on the button.
Now, you can choose a license from the left side bar.
GitHub will help you add your name and year to the template.
Then after submission, a commit and merging the pull request, your repository will be with a license.
As you can see, now my repository is with an MIT License.