Answer the question
In order to leave comments, you need to log in
Why does composer create a .git folder?
How to get rid of the .git folder (which appears in the vendor/project folder)? when you install a library from a github repository via composer. So that when "composer install" it does not appear.
Answer the question
In order to leave comments, you need to log in
This is described in the composer install documentation :
There are two ways to download a package - source and dist. The default is dist for stable versions and source for others. Since you are installing from a repository, the source method is used.
Try Argument--prefer-dist
composer install --help
:
--prefer-dist Forces installation from package dist even for dev versions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question