Sensitive columns—emails, passwords, API keys—are in your Git history. You cannot let them stay. Teams often try git reset to roll back changes, but a simple reset will not fully clean sensitive data. Git keeps history, and a standard reset only changes the current branch pointer. The old commits, with all the sensitive columns, still exist in the repository object database.
To remove them, you must rewrite history. Tools like git filter-repo or BFG Repo-Cleaner allow you to target specific columns in files or entire files, and strip them from every commit they appear in. This process will rewrite commit hashes, and you will need to force-push to the remote. Every collaborator will have to re-clone or handle the rewritten history.
The steps: