git filter-repo: Removing Sensitive Files and Rewriting History
Accidentally committing a wp-config.php with production credentials, an .env file, or a private key requires a proper history rewrite — not just a new commit that deletes the file. git filter-repo (the official replacement for git filter-branch) is orders of magnitude faster, safer, and more ergonomic for removing files, rewriting commit messages, and transplanting subdirectories…