R
R
Roquefort2017-02-02 13:49:17
GitHub
Roquefort, 2017-02-02 13:49:17

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

2 answer(s)
I
Igor Deyashkin, 2017-02-02
@Roquefort

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

A
Andrey Burov, 2017-02-02
@BuriK666

composer install --help:

--prefer-dist Forces installation from package dist even for dev versions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question