Remove large files or passwords from Git history like git-filter-branch.…
Remove large files or passwords from Git history like git-filter-branch. Note: if your repository is connected to a remote, you will need to force push to it. More information: https://rtyley.github.io/bfg-repo-cleaner/.
bfg --delete-files {{file_with_sensitive_data}}
bfg --replace-text {{path/to/file.txt}}