MENU
  
# How can I nuke a directory/file from git history?
git-filter-repo --invert-paths --path external-metric-scripts/ --force
# NOTE: There is "git filter-branch" as well but git-filter-repo has better perf and more functionality, even the docs for "git filter-branch" recommends git-filter-repo: https://git-scm.com/docs/git-filter-branch#_warning