git删除多个文件夹以及文件

阅读 4.7k
2 个回答

执行前先备份,执行前先备份,执行前先备份,执行前先备份,执行前先备份,执行前先备份

data/bigfile 最好从项目根目录指定,可以用通配符*

git filter-branch --force --index-filter git rm --cached --ignore-unmatch data/bigfile' --prune-empty --tag-name-filter cat -- --all