参考:https://www.cnblogs.com/banbosuiyue/p/12674778.html git bash执行 git rm -r --cached "灰色文件夹的名称" 删除本地文件夹隐藏的.git文件重新上传即可