Home > Backend Development > PHP Tutorial > 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
Release: 2016-08-04 09:21:45
Original
1206 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template