在我们将代码上传到cocoapods时需要许可说明,
常见许可证如
Apache License 2.0
GNU General Public License v3.0
MIT License
GitHub有提供最直接的创建方式,步骤例:
在输入LICENSE后会自动出现 Choose a license template选项按钮,点击
以MIT License为例,选好所需许可后点击Review and submit
在页面下方会有两个选择
选择一 Commit directly to the master branch.
直接将此许可证提交到master分支
选择二 Create a new branch for this commit and start a pull request.
新建立一个分支
选择 Commit directly to the master branch.提交到master后点击 Commit new file即可创建完成