Zero's Blog - 清理已经提交到 Git 仓库但后续纳入 gitignore 的文件 的评论 https://l2dy.sourceforge.io/2021/05/05/gitignore-clean.html zh-CN git ls-files -ziX .gitignore | xargs -0 git rm缺点是如果仓库里有多个 .gitignore 文件,只能覆盖到当前目录的。另一种比较危险的方案是移除所... Thu, 01 Jan 1970 00:00:00 +0000 Thu, 01 Jan 1970 00:00:00 +0000