After composer installation, the plug-in is treated as a GIT submodule (GIT subproject)

WBOY
Release: 2016-09-08 08:44:05
Original
1316 people have browsed it

Using the YII2 framework, I am used to using composer to install plug-ins. After installation, I found that the plug-in directory was treated as a GIT sub-project, and the tool holder was submitted to the project's GIT, which was just an empty directory.

There are a few small questions;
1. Does everyone ignore the vendor when it comes to git for online projects? This feels inconvenient for both collaboration and deployment, mainly because composer is also a problem in China.
2. If this happens, you don’t want to ignore the vendor folder and want to remove the recognition of this sub-project. How should you do it?

Reply content:

Using the YII2 framework, I am used to using composer to install plug-ins. After installation, I found that the plug-in directory was treated as a GIT sub-project, and the tool holder was submitted to the project's GIT, which was just an empty directory.

There are a few small questions;
1. Does everyone ignore the vendor when it comes to git for online projects? This feels inconvenient for both collaboration and deployment, mainly because composer is also a problem in China.
2. If this happens, you don’t want to ignore the vendor folder and want to remove the recognition of this sub-project. How should you do it?

You must have selected the dev-master tag. The main reason is this.

1. Under normal circumstances, of course, vender should be ignored. Usually it is done locally when developing, and then composer updates on the server when publishing. The vendor will not be published as a file.
2. I’m not sure what the problem is. There is no add in git?

Modify .gitignore and delete vendor/ and it should be fine

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