I am trying to delete a file permanently from the Git history, because it contains sensitive data.
To do this, I am using bfg
: https://rtyley.github.io/bfg-repo-cleaner/
The file is called app/config.json
.
However there are other files called config.json
in other folders that I don't want deleted.
I tried the following:
git clone --mirror git://example.com/some-repo.git
bfg --delete-files app/config.json my-repo.git
but I get the error message:
Error: *** Can only match on filename, NOT path *** - remove '/' path segments
How do I delete just this specific file?