The upgrade process is as follows:
brew updateerror: Your local changes to the following files would be overwritten by merge: Formula/php56.rbPlease, commit your changes or stash them before you can merge.AbortingError: Failed to update tap: homebrew/php
Find a way to solve
Reply content:
The upgrade process is as follows:
brew updateerror: Your local changes to the following files would be overwritten by merge: Formula/php56.rbPlease, commit your changes or stash them before you can merge.AbortingError: Failed to update tap: homebrew/php
Find a way to solve
Find a solution, as follows
cd $(brew --prefix)/Library/Taps/homebrew/homebrew-phpgit checkout -- Formula/php56.rb
Also very grateful @mcfog provide phpbrew, very worthy of recommendation, I will try
The hint is clear, php56.rb Local was changed, need to restore to update
If you don't know how to get changed, just
bash
cd /usr/local/Library/Formula/git reset --hard
Just restore all formula files.
Incidentally continue to recommend better support for multiple PHP versions, compile more convenient phpbrew