使新添加的.gitignore生效 进入项目目录后 删除缓存 git rm -r --cached . 添加所有文件 git add . commit后生效 git commit -m "make .gitignore work" 俗人昭昭,我独昏昏。俗人察察,我独闷闷。