# 假设要停止追踪 dist/ 目录 git rm --cached -r dist/ echo "dist/" >> .gitignore git add .gitignore git commit -m "chore: 停止追踪 dist/,加入 .gitignore"
# 假设要停止追踪 dist/ 目录 git rm --cached -r dist/ echo "dist/" >> .gitignore git add .gitignore git commit -m "chore: 停止追踪 dist/,加入 .gitignore"
本文来自博客园,作者:余生请多指教ANT,转载请注明原文链接:https://www.cnblogs.com/wangbiaohistory/p/20285409