Purge from file history
Description
Customer is saying
Recently, we had an engineer commit files with sensitive information, attempting to remediate such spillage proved too difficult and resulted in removal and re-creation of the project. Having a feature to purge a specific file from project history would have saved us hours. Using git-filter-branch and BFG (https://rtyley.github.io/bfg-repo-cleaner/) proved to be ineffective in this case.
Completely removing a file from history is feasible but hard. And definitely requires advanced git knowledge. We could simplify this greatly.
Proposal
- In the file browser, when viewing a file, when clicking on the Delete button, display a popup:
- In this popup, indicate a message saying what deletion means, and provide a checkbox with the option "Also purge this file from git history".
- Behind the scenes, we leverage https://rtyley.github.io/bfg-repo-cleaner/ to do it for us.