If you want to go the mentioned "rewrite-whole-history" route, I have used BFG Repo Cleaner [0] successfully in the past. It's way faster than git-filter-branch [1].<p>Another thing: You can work with shallow clones. If the commit is ancient, no need to pull the whole history of a project.<p>[0]: <a href="https://rtyley.github.io/bfg-repo-cleaner/" rel="nofollow">https://rtyley.github.io/bfg-repo-cleaner/</a><p>[1]: <a href="https://git-scm.com/docs/git-filter-branch" rel="nofollow">https://git-scm.com/docs/git-filter-branch</a>