摘要: 有时候,更改.gitignore文件后,你可能需要清理Git的缓存来确保更改生效: git rm -r --cached . git add . git commit -m "Apply .gitignore" 阅读全文