SOLFIND
Web Lens
Portal home

Adding a license to a repository - GitHub Docs

https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository • 120 KB fetched
Open original page


Adding a license to a repository - GitHub Docs Skip to main content GitHub Docs Version: Free, Pro, & Team Search or ask Copilot Search or ask Copilot Select language: current language is English Search or ask Copilot Search or ask Copilot Open menu Collapse sidebar Expand sidebar Scroll breadcrumbs left * Home * Building communities * Healthy contributions * Add a license to a repo Scroll breadcrumbs right Building communities * * * Healthy contributions * Management & moderation * Community profiles * Access community profiles * Add a code of conduct * Contributor guidelines * Add a license to a repo * Add support resources * Community health file * Encourage contributions * Issue & PR templates * About templates * Configure * Syntax for issue forms * Syntax for GitHub's form schema * Create a PR template * Common validation errors when creating issue forms * Moderation * Manage comments * Locking conversations * Archive pull requests * Limit interactions in repo * Limit interactions in account * Limit interactions in org * Track comment changes * Manage abuse in your org * Manage reported content * Maintaining safety * Block from your account * View blocked users in account * Unblock from your account * Block from your org * View blocked users in org * Unblock from your org * Reporting abuse or spam * Using wikis * About wikis * Manage wiki pages * Create footer or sidebar * Editing wiki content * View a history of changes * Change access permissions * Disabling wikis Adding a license to a repository You can include an open source license in your repository to make it easier for other people to contribute. Copy as Markdown In this article * Including an open source license in your repository * Further reading If you include a detectable license in your repository, people who visit your repository will see it at the top of the repository page. To read the entire license file, click the license name (for example: github-linguist/linguist ). Open source licenses enable others to freely use, change, and distribute the project in your repository. For more information on repository licenses, see Licensing a repository . Including an open source license in your repository * On GitHub, navigate to the main page of the repository. * Above the list of files, select the Add file dropdown menu, then click Create new file . Alternatively, you can click in the file tree view on the left. * In the file name field, type LICENSE or LICENSE.md (with all caps). * Under the file name, click Choose a license template . * On the left side of the page, under "Add a license to your project," review the available licenses, then select a license from the list. * Click Review and submit . * Click Commit changes... * In the "Commit message" field, type a short, meaningful commit message that describes the change you made to the file. You can attribute the commit to more than one author in the commit message. For more information, see Creating a commit with multiple authors or on behalf of an organization . * Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is the default branch, you should choose to create a new branch for your commit and then create a pull request. For more information, see Creating a pull request . * If you have more than one email address associated with your account on GitHub, click the email address drop-down menu and select the email address to use as the Git author email address. Only verified email addresses appear in this drop-down menu. If you enabled email address privacy, then a no-reply will be the default commit author email address. For more information about the exact form the no-reply email address can take, see Setting your commit email address . * Click Commit changes or Propose changes . Further reading * Setting guidelines for repository contributors Back to top Help and support Was this Doc helpful? Yes No Help us make GitHub Docs great! All Docs are open source. See something that's wrong or unclear? Submit a pull request. Make a contribution Still need help? Ask the GitHub community Contact support Expert services Blog GitHub Inc. © 2026 Terms Privacy Status Pricing

Links found on this page

  1. Skip to main content [direct]
  2. GitHub Docs [direct]
  3. Building communities [direct]
  4. Healthy contributions [direct]
  5. Management & moderation [direct]
  6. Community profiles [direct]
  7. Access community profiles [direct]
  8. Add a code of conduct [direct]
  9. Contributor guidelines [direct]
  10. Add support resources [direct]
  11. Community health file [direct]
  12. Encourage contributions [direct]
  13. About templates [direct]
  14. Configure [direct]
  15. Syntax for issue forms [direct]
  16. Syntax for GitHub's form schema [direct]
  17. Create a PR template [direct]
  18. Common validation errors when creating issue forms [direct]
  19. Manage comments [direct]
  20. Locking conversations [direct]
  21. Archive pull requests [direct]
  22. Limit interactions in repo [direct]
  23. Limit interactions in account [direct]
  24. Limit interactions in org [direct]
  25. Track comment changes [direct]
  26. Manage abuse in your org [direct]
  27. Manage reported content [direct]
  28. Block from your account [direct]
  29. View blocked users in account [direct]
  30. Unblock from your account [direct]
  31. Block from your org [direct]
  32. View blocked users in org [direct]
  33. Unblock from your org [direct]
  34. Reporting abuse or spam [direct]
  35. About wikis [direct]
  36. Manage wiki pages [direct]
  37. Create footer or sidebar [direct]
  38. Editing wiki content [direct]
  39. View a history of changes [direct]
  40. Change access permissions [direct]
  41. Disabling wikis [direct]
  42. github-linguist/linguist [direct]
  43. Licensing a repository [direct]
  44. Creating a commit with multiple authors or on behalf of an organization [direct]
  45. Creating a pull request [direct]
  46. Setting your commit email address [direct]
  47. Make a contribution [direct]
  48. Ask the GitHub community [direct]
  49. Contact support [direct]
  50. Expert services [direct]
  51. Blog [direct]
  52. Terms [direct]
  53. Privacy [direct]
  54. Status [direct]
  55. Pricing [direct]