.gitignore填写对应文件之后不生效 可进行以下操作,删除缓存然后提交 git rm -r --cached . git add . git commit -m 'update .gitignore'