composer安装的包git无法提交的解决办法是因为安装的时候生成了.git隐藏文件

使用composer updata --prefer-dist安装

原文地址:https://www.cnblogs.com/huixuexidezhu/p/12366209.html