git缓存问题导致的无法忽略
缓存问题:
- Git 会缓存跟踪状态,即使添加了忽略规则,已跟踪的文件仍会被继续跟踪
解决方案:
git rm -r --cached /backend/tmp/ git add . git commit -m "停止跟踪 tmp 目录"
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »
缓存问题:
解决方案:
git rm -r --cached /backend/tmp/
git add .
git commit -m "停止跟踪 tmp 目录"
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »