Home  >  Article  >  Backend Development  >  The author of the code base has updated the code. How can I synchronize the code on my own vps to be consistent with the author?

The author of the code base has updated the code. How can I synchronize the code on my own vps to be consistent with the author?

WBOY
WBOYOriginal
2016-08-04 09:21:451159browse

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!

Reply content:

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn