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

git gets the remote code and reports an error locally

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-04 09:20:20
Original
1051 people have browsed it

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

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
Latest Issues
ssh - git clone and git push errors
From 1970-01-01 08:00:00
0
0
0
git push cannot be submitted
From 1970-01-01 08:00:00
0
0
0
git checkout specific version failed
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template