Answer the question
In order to leave comments, you need to log in
Does composer know how to clean "garbage"?
I wanted to play around with symfony, and at the same time use the composer for the first time. Everything is installed, but a lot of garbage remains:
- Tests
- Redmi
- License Deleting
essentially unnecessary files with your hands (they are not needed?) Somehow tiring ...
Answer the question
In order to leave comments, you need to log in
When you create a new project, for example based on symfony/framework-standard-edition
, using the create-project command , this is equivalent to doing git clone + installing packages from composer.json, then git metadata is removed.
Hence all the "garbage".
Initialize a new git repository, add only the necessary files and commit them. And remove the "garbage" git clean -f
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question