GitHub代码创建LICENSE

1,084 阅读1分钟

如MIT 在我们将代码上传到cocoapods时需要许可说明, 常见许可证如

Apache License 2.0

GNU General Public License v3.0

MIT License

GitHub有提供最直接的创建方式,步骤例: 点击勾选

在输入LICENSE后会自动出现 Choose a license template选项按钮,点击 1545812044003.jpg

MIT License为例,选好所需许可后点击Review and submit 1545812154599.jpg

1545808709303.jpg

在页面下方会有两个选择

选择一 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即可创建完成