可能是本地缓存的问题, 在对应的微服务文件夹上,使用git命令,具体执行顺序如下 git rm -r --cached . git add . git commit -m 'update .gitignore'