git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch <要删除的文件名>' --prune-empty --tag-name-filter cat -- --all

git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch <要删除的文件名>' --prune-empty --tag-name-filter cat -- --all