1. The code that runs on my VPS is downloaded with composer. Yesterday gave the code author a issue, the author modified the code, then my VPS on the code, how to sync to the author's host on the GIT code consistent?
2. I try
composer update
and
composer update blink/blink --prefer-source
, have no effect, and can not be updated into a consistent state with the author.
3. Thank you!
Reply content:
1. The code that runs on my VPS is downloaded with composer. Yesterday gave the code author a issue, the author modified the code, then my VPS on the code, how to sync to the author's host on the GIT code consistent?
2. I try composer update
and composer update blink/blink --prefer-source
, have no effect, and can not be updated into a consistent state with the author.
3. Thank you!
From your problem analysis, it may be because the Composer.json has already written the tag of the component, it will not be updated without effect.
Solution:
1. Find the tag of the latest code published by the code author;
2, implementation composer require new/package tag
to update.
Is it git, and if so, pull the remote stream directly