Home

Removing Files From Repo History

Resources

  1. GitHub Docs

tl;dr

git filter-branch --force --index-filter \ "git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" \ --prune-empty --tag-name-filter cat -- --all git push origin --force --all

Repository

https://github.com/okeeffed/developer-notes-nextjs/content/git/removing-files-from-repo-history

Sections


Related