I need to delete configuration files from my web application and from the git history. I've done that using the bfg repo cleaner tool. I went through the steps outlined in the documentation:
git clone --mirror url.git
java -jar bfg-1.13.0.jar --delete-files "{App.config,Web.config}" repo-name.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
I pushed the result to a new repository in gitlab. The files are gone from the history. I can checkout an old commit and the files do not come down.
BUT when I look at the details of commit involving Web.config file the changes section shows the diff of the Web.config file. So it is still possible to see the text of the configuration files.
Did I miss something in my use of the bfg tool? Or is this something the tool will not change? How can I remove the files from the commit changes summary?