升級(jí)過程如下:
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
求解決方法
擁有18年軟件開發(fā)和IT教學(xué)經(jīng)驗(yàn)。曾任多家上市公司技術(shù)總監(jiān)、架構(gòu)師、項(xiàng)目經(jīng)理、高級(jí)軟件工程師等職務(wù)。 網(wǎng)絡(luò)人氣名人講師,...
找到解決辦法了,如下
cd $(brew --prefix)/Library/Taps/homebrew/homebrew-php
git checkout -- Formula/php56.rb
另外很感謝@mcfog 提供的PHPBrew,很值得推薦,我會(huì)嘗試的
提示很明確啊,php56.rb本地被改過,需要還原才能更新
如果你不清楚怎么被改過的話,直接
bash
cd /usr/local/Library/Formula/ git reset --hard
還原全部formula文件就好
順帶繼續(xù)推薦更好支持多php版本,編譯更方便的PHPBrew
微信掃碼
關(guān)注PHP中文網(wǎng)服務(wù)號(hào)
QQ掃碼
加入技術(shù)交流群
Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號(hào)