git filter-branch -f --index-filter 'git rm --ignore-unmatch filename' HEAD
git filter-branch -f --index-filter 'git rm -rf --ignore-unmatch dirname' HEAD