How to make composer NOT create a .git directory for a package
If a package is seen as a git submodule, you haven't excluded the
vendorfolder from being committed to your own repository. It is recommended to add the vendor folder to.gitignore, and not commit these files, only commitcomposer.lock(andcomposer.jsonof course).Apart from that, running
composer install --prefer-distshould do the job. Note that Composer seems to not change the download method used first if you change your mind later. If Composer detects a cloned repo, it is faster to just update that instead of downloading a ZIP and unpacking it. If you want to change that, delete the wholevendorfolder and runcomposer update --prefer-dist.