git的gitingore文件如果在项目开始没有加入的时候,文件被跟踪后再加入是没法生效的,解决方案。 1.git rm -r --cached . 2.git add . 3 git commit -m "zzz"