git filter-branch --force --prune-empty --index-filter \
"git rm --cached -r --force --ignore-unmatch -- $file"
--tag-name-filter cat -- --all我在$file中用一个相当长的路径名列表(共44个)尝试了这个方法。在运行结束时,其中一些不会被删除。如果我再次运行剩余物,它们会被删除。
为什么会这样呢?
发布于 2013-10-31 16:07:04
您可以尝试将该列表保存到文件中,然后执行以下操作:
xargs -a /tmp/files git rm --cached -r --force --ignore-unmatch --https://stackoverflow.com/questions/19696010
复制相似问题