Composer package conflict in git repository; how to untrack files but avoid deletion of files when pushing to remote
问题 I installed a package on my web application via composer. And added the package folder to .gitignore, whilst committing composer.json and composer.lock To deploy to our server, we Push to a bare Git remote on the server which in turn pushes the modified files to the relevant location on the server. This workflow was all working fine. At a later date, someone else working on the repository added the package files to the repository and removed the package from gitignore. We want the package