升级过程如下:
<code>brew update
error: Your local changes to the following files would be overwritten by merge:
Formula/php56.rb
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failed to update tap: homebrew/php
</code>求解决方法
升级过程如下:
<code>brew update
error: Your local changes to the following files would be overwritten by merge:
Formula/php56.rb
Please, commit your changes or stash them before you can merge.
Aborting
Error: Failed to update tap: homebrew/php
</code>求解决方法
找到解决办法了,如下
立即学习“PHP免费学习笔记(深入)”;
<code>cd $(brew --prefix)/Library/Taps/homebrew/homebrew-php git checkout -- Formula/php56.rb </code>
另外很感谢@mcfog 提供的PHPBrew,很值得推荐,我会尝试的
Raza Microelectronics, Inc.(RMI公司)是勇于创新的信息基础架构半导体解决方案领导厂商,其产品广泛地被应用于改善不断演进的信息基础设施。在这个演进过程中,数据中心和家庭之间的连接在强度和速率方面都逐渐升级;安全和智能化已经成为每一个网络系统环境的要求;同时,边缘网络日益成为瓶颈,促使业界需要更具扩展能力及成本优势的智能网络接入方法。RMI公司为信息基础架构设计并提供多样化的解决方案,为下一代灵活的企业和数据中心应用、智能接入和数字影像系统奠定基础。 RMI远程方法调用目录 一、
0
提示很明确啊,php56.rb本地被改过,需要还原才能更新
如果你不清楚怎么被改过的话,直接
<code>bash</code><code>cd /usr/local/Library/Formula/ git reset --hard </code>
还原全部formula文件就好
顺带继续推荐更好支持多php版本,编译更方便的PHPBrew
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号