目录

开源协议License

开源协议License

介绍

License是每一个开源项目都会有协议,常见Apache、MIT、BSD、GPL、LGPL、MPL、SSPL等

OSI Approved Licenses

Open source licenses are licenses that comply with the Open Source Definition – in brief, they allow software to be freely used, modified, and shared. To be approved by the Open Source Initiative (also known as the OSI) a license must go through the Open Source Initiative’s .

OSI批准的许可证

开源许可证是符合开源定义的许可证——简而言之,它们允许自由使用、修改和共享软件。要获得开源计划(也称为OSI)的批准,许可证必须经过开源计划的许可证审查流程。

更多开源License可以查看开源计划

[Open Source 开源计划

https://i-blog.csdnimg.cn/blog_migrate/003a2ce7eb50c2e24a8c624c260c5930.png "  Open Source 开源计划")

第一种方式是从open source里找License模板使用

这种方式适用于自己或他人的开放平台管理和发布开源文件

MIT模板

模板内容

Copyright

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

模板使用

将模板中 替换成自己的信息

例如:

Copyright 2024 Point_zg

第二种方式是Git仓库添加License

这种方式使用与源文件使用Git维护和发布

1.打开Git仓库,然后新建文件

https://i-blog.csdnimg.cn/direct/fd3708341a144d36aa99d26869e391d2.png

2.文件名字输入License,然后在选择开源许可证,我这边选择MIT

https://i-blog.csdnimg.cn/direct/3ff39d5aaf724d97b9b86fc033968087.png

3.选择开源许可证后,Git会自动填充License内容

https://i-blog.csdnimg.cn/direct/4396f0ff91aa45cfb6c22da0f306c80e.png

结尾

对比可以发现openSource提供License模板和Git生成的License基本都是一样的。现在各大项目文件管理平台都强烈建议在仓库中添加License,避免自身的权益产生纠纷受损,可以看的出著作权的管理和保护在逐步完善。

感谢您的阅读,如果您有什么问题或建议,欢迎留言评论。