1,There is no license information available for the latest version (v1.0.0) of this package.:没有允许的协议什么的,在composer.json中添加:
"license": "MIT",
2,efusing to merge unrelated histories
推荐查看https://blog.youkuaiyun.com/u012145252/article/details/80628451
解决
git pull origin master --allow-unrelated-histories
3,切记一定要打版本号
git tag v1.0.1 // 版本号
git tag -l // 查看有哪些版本号
git push origin --tags // 将所有版本号push到远程仓库
推荐参考文章
composer提交php包的过程:https://segmentfault.com/a/1190000013947602
git tag有关知识:https://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E6%89%93%E6%A0%87%E7%AD%BE
本文详细介绍了在使用Composer发布PHP包时遇到的许可信息缺失问题及其解决方案,并提供了如何在Git中正确管理版本号的方法,包括添加许可信息、解决历史合并冲突及推送版本标签到远程仓库。
7703

被折叠的 条评论
为什么被折叠?



