Php cannot submit the code file of this package through git after adding a package through composer

Source: Internet
Author: User
Tags website performance
Added a facebookxhprof through composer to view the website performance. In composer. added: {code...} to the json require field ...} then run the command: composerupdate successfully installed the package, and the package is installed in the vender under the root directory... added facebook/xhprofUsed to view the performance of a website. Added the following in the require field of composer. json:

"facebook/xhprof": "dev-master"

Then run the following command:composer updateThe package is successfully installed, and the package is installed under the root directory.vendor.

Howevergit add * git commit -m ""Unablevendor/facebook/xhprofOnly the directory of facebook/xhprof is submitted, and none of the following files are submitted.

This problem was not the first time encountered today. It was also encountered several times before. It took a long time to debug the problem on the server. Later I checked it and found that it was originally submitted only to the directory, files in the directory are not submitted.

PS: I have checked the. gitignore file. It can be confirmed that the files in the directory are not blocked, but cannot be submitted.

Reply content:

Addedfacebook/xhprofUsed to view the performance of a website. Added the following in the require field of composer. json:

"facebook/xhprof": "dev-master"

Then run the following command:composer updateThe package is successfully installed, and the package is installed under the root directory.vendor.

Howevergit add * git commit -m ""Unablevendor/facebook/xhprofOnly the directory of facebook/xhprof is submitted, and none of the following files are submitted.

This problem was not the first time encountered today. It was also encountered several times before. It took a long time to debug the problem on the server. Later I checked it and found that it was originally submitted only to the directory, files in the directory are not submitted.

PS: I have checked the. gitignore file. It can be confirmed that the files in the directory are not blocked, but cannot be submitted.

The facebook/xhprof directory will generate a. git folder, which is affected and cannot be uploaded. You can delete it and upload it again.

Use composer update -- prefer-dist (ignore the project. git directory ),
This article may solve your doubts, https://segmentfault.com/a/1190000005105795

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.