1. The code running on my vps was downloaded using composer. Yesterday, I raised an issue with the author of the code. The author modified the code. How can I synchronize the code on my vps to be consistent with the code hosted by the author on git?
2. I tried composer update
and composer update blink/blink --prefer-source
, but they had no effect and could not be updated to the same state as the author.
3.Thank you!
1. The code running on my vps was downloaded using composer. Yesterday, I raised an issue with the author of the code. The author modified the code. How can I synchronize the code on my vps to be consistent with the code hosted by the author on git?
2. I tried composer update
and composer update blink/blink --prefer-source
, but they had no effect and could not be updated to the same state as the author.
3.Thank you!
From the analysis of your problem, it may be that the component tag has been hardcoded in composer.json, so the update has no effect.
Solution:
1. Find the tag of the latest code released by the code author;
2. Execute composer require new/package tag
to update.
Is it git? If so, pull the remote stream directly