特定のファイル履歴を削除
git filter-branch --index-filter 'git rm --cached --ignore-unmatch targetfile' HEAD
git commit -m 'delete targetfile'
git push origin master --force
特定のフォルダ履歴を削除
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch dir' HEAD
git commit -m 'delete targetfolder'
git push origin master --force