Home  >  Article  >  Backend Development  >  git gets the remote code and reports an error locally

git gets the remote code and reports an error locally

WBOY
WBOYOriginal
2016-08-04 09:20:201008browse

The code is all on the server. After going to the local through git clone, the locally configured project can be accessed normally. Different errors are always reported, and the error messages are similar. The corresponding class or corresponding method cannot be found. I don’t know why, so I’m waiting online!

Reply content:

The code is all on the server. After going to the local through git clone, the locally configured project can be accessed normally. Different errors are always reported, and the error messages are similar. The corresponding class or corresponding method cannot be found. I don’t know why, so I’m waiting online!

I suspect that when you get the project code from the service, you git do file filtering on the server. Check to see if there is a .gitignore file in your project. If so, open it and see if you have a file or folder name. If it is likely to be filtered out, you will not be able to obtain the code and the program will report an error.

What you said above is correct. In addition, many projects are now managed by composer, so some class libraries are not included in the source code. You need to run composer install to install them yourself. The feature is very simple. If your project root directory has composer.json, it means composer is used. La.

If it is what is said above, you only need to run composer install in cmd

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